From f2580fcc9470d1ac688ca9b6edd87666784eaf6b Mon Sep 17 00:00:00 2001 From: Russ Handorf Date: Mon, 23 May 2016 23:53:33 -0400 Subject: [PATCH] Fixed a time bug --- php/index.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/php/index.php b/php/index.php index 396204f..cb52d19 100644 --- a/php/index.php +++ b/php/index.php @@ -190,9 +190,9 @@ function get_time() { function update_time() { ntpcounter=ntpcounter+1; - date.setSeconds(date.getSeconds() + 1); document.getElementById("updatetime").innerHTML = (date); - if (ntpcounter>3600) { + date.setSeconds(date.getSeconds() + 1); + if (ntpcounter>600) { ntpcounter=0; get_time(); } -- 2.17.1