projects
/
rb-clock.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
56f4a53
)
Fixed a time bug
author
Russ Handorf
<rhandorf@handorf.org>
Tue, 24 May 2016 03:53:33 +0000
(23:53 -0400)
committer
Russ Handorf
<rhandorf@handorf.org>
Tue, 24 May 2016 03:53:33 +0000
(23:53 -0400)
php/index.php
patch
|
blob
|
history
diff --git
a/php/index.php
b/php/index.php
index 396204f21be57390c43fcd9f85828cd8fe8a9234..cb52d190da14ada049b72b5fd470cc407ae9d318 100644
(file)
--- 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();
}