summaryrefslogtreecommitdiff
path: root/series-ping.py
diff options
context:
space:
mode:
Diffstat (limited to 'series-ping.py')
-rw-r--r--series-ping.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/series-ping.py b/series-ping.py
index 0993d08..c4fc508 100644
--- a/series-ping.py
+++ b/series-ping.py
@@ -1,7 +1,10 @@
import commands
import datetime
-POINTS = 100
+# How many points to measure. Make sure that you leave the baseline
+# running for a significative amount before triggering the sync, it's possible
+# you have significant variability in there.
+POINTS = 200
start = datetime.datetime.now()
@@ -10,7 +13,9 @@ for i in range(POINTS):
print "Step", i, "...", value
cpu_mem = commands.getoutput('python get-client-cpu-mem.py')
cpu, mem = cpu_mem.split()
+ #print "CPU/MEM", cpu, mem
now = datetime.datetime.now()
- secs = (now - start).seconds
+ secs = (now - start).total_seconds()
+ #print "TOOK", secs, "seconds"
commands.getoutput(
'echo %s\t%s\t%s\t%s >> series.log' % (secs, value, cpu, mem))