From 89d2505a7cf363d69cb89725ca521c48837579c9 Mon Sep 17 00:00:00 2001 From: hagen Date: Thu, 19 May 2016 00:00:00 +0000 Subject: [PATCH] * fix time in webconsole (#496) --- HTTPServer.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/HTTPServer.cpp b/HTTPServer.cpp index 81515105..4e44e6f9 100644 --- a/HTTPServer.cpp +++ b/HTTPServer.cpp @@ -241,15 +241,15 @@ namespace http { if ((num = seconds / 86400) > 0) { s << num << " days, "; - seconds -= num; + seconds -= num * 86400; } if ((num = seconds / 3600) > 0) { s << num << " hours, "; - seconds -= num; + seconds -= num * 3600; } if ((num = seconds / 60) > 0) { s << num << " min, "; - seconds -= num; + seconds -= num * 60; } s << seconds << " seconds"; }