projects
/
wyse_ntpd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
ce8ac11
)
more script updates, added peerstats cleanup
author
Paul J R
<me@pjr.cc>
Wed, 1 Jan 2014 15:53:38 +0000 (
02:53
+1100)
committer
Paul J R
<me@pjr.cc>
Wed, 1 Jan 2014 15:53:38 +0000 (
02:53
+1100)
src/buildroot-2013.05/custom/filesystem/opt/stats_daemon.sh
patch
|
blob
|
history
diff --git
a/src/buildroot-2013.05/custom/filesystem/opt/stats_daemon.sh
b/src/buildroot-2013.05/custom/filesystem/opt/stats_daemon.sh
index
ab35d57
..
a5b9e1e
100755
(executable)
--- a/
src/buildroot-2013.05/custom/filesystem/opt/stats_daemon.sh
+++ b/
src/buildroot-2013.05/custom/filesystem/opt/stats_daemon.sh
@@
-1,8
+1,13
@@
#!/bin/sh
+
+cldate=`date '+%s'`
while(true)
do
date '+%s' >> /var/www/data/ntp.log.$cldate
ntpq -c lpe -n |grep "127.127.20" >> /var/www/data/ntp.log.$cldate
+
+ find /var/www/data/stats -mtime +2 -type f -exec rm {} \;
+
sleep 30
done