Fix logging.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sat, 13 Oct 2012 08:07:00 +0000 (10:07 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sat, 13 Oct 2012 08:07:00 +0000 (10:07 +0200)
src/main/java/net/pterodactylus/sone/web/page/FreenetTemplatePage.java

index addbf7f..67884bd 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 %dms.", ((finish - start) / 1000) / 1000.0));
+                       logger.log(Level.FINEST, String.format("Template was rendered in %.2fms.", ((finish - start) / 1000) / 1000.0));
                } catch (RedirectException re1) {
                        return new RedirectResponse(re1.getTarget());
                }