Make expression less dubious.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Thu, 26 Jun 2014 18:21:03 +0000 (20:21 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Thu, 26 Jun 2014 18:21:03 +0000 (20:21 +0200)
src/main/java/net/pterodactylus/sone/web/page/FreenetTemplatePage.java

index 625978b..ce3fa2e 100644 (file)
@@ -156,7 +156,7 @@ public class FreenetTemplatePage implements FreenetPage, LinkEnabledCallback {
                        long start = System.nanoTime();
                        processTemplate(request, templateContext);
                        long finish = System.nanoTime();
-                       logger.log(Level.FINEST, String.format("Template was rendered in %.2fms.", ((finish - start) / 1000) / 1000.0));
+                       logger.log(Level.FINEST, String.format("Template was rendered in %.2fms.", (finish - start) / 1000000.0));
                } catch (RedirectException re1) {
                        return new RedirectResponse(re1.getTarget());
                }