X-Git-Url: http://git.onelab.eu/?p=monitor.git;a=blobdiff_plain;f=statistics%2Fharvest_tt_resolve.py;h=c1295a0f2a0203527e55bcd64ac49b97c7b831a4;hp=bebff32654efb508bf1affbc37c03de968398bac;hb=HEAD;hpb=76aa61d5a7f5ec00f7cb571094ebda835211fdd0 diff --git a/statistics/harvest_tt_resolve.py b/statistics/harvest_tt_resolve.py index bebff32..c1295a0 100755 --- a/statistics/harvest_tt_resolve.py +++ b/statistics/harvest_tt_resolve.py @@ -37,9 +37,6 @@ count = 0 for index,node in enumerate(HistoryNodeRecord.query.all()): frequency[node.hostname] = 0 - - #if index > 3: sys.exit(1) - if node.hostname == 'planetlab-02.kyushu.jgn2.jp': for h in node.versions: print h.last_checked, h.status @@ -57,7 +54,6 @@ for index,node in enumerate(HistoryNodeRecord.query.all()): count += 1 pairs.append((datetime.now(), node.versions[-1].last_checked)) else: - while i > 0: i = find_next(node.versions, i, 'down') i2 = find_next(node.versions, i, 'offline') @@ -72,7 +68,6 @@ for index,node in enumerate(HistoryNodeRecord.query.all()): frequency[node.hostname] += 1 # list of all times - for p in pairs: times.append(diff_time(p[0],p[1]))