From: Russ Handorf Date: Tue, 24 May 2016 03:53:33 +0000 (-0400) Subject: Fixed a time bug X-Git-Url: http://handorf.org/code/?p=rb-clock.git;a=commitdiff_plain;h=f2580fcc9470d1ac688ca9b6edd87666784eaf6b Fixed a time bug --- 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(); }