projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update crunchstat-summary to Python 3. Refs #14939
[arvados.git]
/
tools
/
crunchstat-summary
/
crunchstat_summary
/
dygraphs.py
diff --git
a/tools/crunchstat-summary/crunchstat_summary/dygraphs.py
b/tools/crunchstat-summary/crunchstat_summary/dygraphs.py
index 1314e9df35612817e260e6644212ef2e8a387bc3..6df440a14e37f87f8fcea5cac7c57ca1269915b4 100644
(file)
--- a/
tools/crunchstat-summary/crunchstat_summary/dygraphs.py
+++ b/
tools/crunchstat-summary/crunchstat_summary/dygraphs.py
@@
-18,7
+18,7
@@
class DygraphsChart(crunchstat_summary.webchart.WebChart):
'data': self._collate_data(tasks, stat),
'options': {
'connectSeparatedPoints': True,
'data': self._collate_data(tasks, stat),
'options': {
'connectSeparatedPoints': True,
- 'labels': ['elapsed']+[uuid for uuid, _ in tasks.ite
rite
ms()],
+ 'labels': ['elapsed']+[uuid for uuid, _ in tasks.items()],
'title': '{}: {} {}'.format(label, stat[0], stat[1]),
},
}
'title': '{}: {} {}'.format(label, stat[0], stat[1]),
},
}
@@
-26,7
+26,7
@@
class DygraphsChart(crunchstat_summary.webchart.WebChart):
def _collate_data(self, tasks, stat):
data = []
nulls = []
def _collate_data(self, tasks, stat):
data = []
nulls = []
- for uuid, task in tasks.ite
rite
ms():
+ for uuid, task in tasks.items():
for pt in task.series[stat]:
data.append([pt[0].total_seconds()] + nulls + [pt[1]])
nulls.append(None)
for pt in task.series[stat]:
data.append([pt[0].total_seconds()] + nulls + [pt[1]])
nulls.append(None)