From: David ‘Bombe’ Roden Date: Thu, 26 Jun 2014 18:21:03 +0000 (+0200) Subject: Make expression less dubious. X-Git-Tag: 0.9-rc1^2~3^2~227 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=51192932622563a4c658ae9f5d510c982d86374d;p=Sone.git Make expression less dubious. --- diff --git a/src/main/java/net/pterodactylus/sone/web/page/FreenetTemplatePage.java b/src/main/java/net/pterodactylus/sone/web/page/FreenetTemplatePage.java index 625978b..ce3fa2e 100644 --- a/src/main/java/net/pterodactylus/sone/web/page/FreenetTemplatePage.java +++ b/src/main/java/net/pterodactylus/sone/web/page/FreenetTemplatePage.java @@ -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()); }