@@ -25,10 +25,13 @@
tooltip: {
trigger: 'axis',
valueFormatter: (value) => {
- const hours = Math.floor(value/60)
- const minutes = Math.floor(value % 60)
- const seconds = Math.floor((value * 60) % 60)
- return hours + ':' + minutes + ':' + seconds
+ if ('{{ measurement.value_type.quantity }}' == 'time') {
+ const hours = Math.floor(value/60)
+ const minutes = Math.floor(value % 60)
+ const seconds = Math.floor((value * 60) % 60)
+ return hours + ':' + minutes + ':' + seconds
+ }
+ return value.toFixed(2) + ' MB'
}
},
xAxis: {
Update chart tooltip format to show value as size in MB for 'rootfs size' and timestamp for 'tmpdir size' Signed-off-by: Ninette Adhikari <ninette@thehoodiefirm.com> --- scripts/lib/build_perf/html/measurement_chart.html | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-)