diff options
author | Kali Kaneko (leap communications) <kali@leap.se> | 2016-04-08 16:52:04 -0400 |
---|---|---|
committer | Kali Kaneko (leap communications) <kali@leap.se> | 2016-04-08 16:52:04 -0400 |
commit | d3604a9a53a04af8c34d08f17b4708c460f76be9 (patch) | |
tree | 9cff7b82040cfd191ae5121a69d7d24d67850415 /series-ping.py | |
parent | 0ea8b94f67741245d2554bb61b45b5c0ad51dc07 (diff) |
compare vshyba/develop: no gain for big downloads!!??
Diffstat (limited to 'series-ping.py')
-rw-r--r-- | series-ping.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/series-ping.py b/series-ping.py index c4fc508..dd6277d 100644 --- a/series-ping.py +++ b/series-ping.py @@ -11,11 +11,14 @@ start = datetime.datetime.now() for i in range(POINTS): value = commands.getoutput('python get_ping_rate.py') print "Step", i, "...", value - cpu_mem = commands.getoutput('python get-client-cpu-mem.py') - cpu, mem = cpu_mem.split() + # TODO --- cpu/mem too brittle. + #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).total_seconds() #print "TOOK", secs, "seconds" commands.getoutput( - 'echo %s\t%s\t%s\t%s >> series.log' % (secs, value, cpu, mem)) + 'echo %s\t%s >> series.log' % (secs, value)) + #'echo %s\t%s\t%s\t%s >> series.log' % (secs, value)) + #, cpu, mem)) |