aboutsummaryrefslogtreecommitdiff
path: root/modern/src/reports/ChartReportPage.js
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-06-21 07:20:14 -0700
committerAnton Tananaev <anton@traccar.org>2022-06-21 07:20:14 -0700
commit2110974542f2700b5d801a540eded8e850be04aa (patch)
tree677886959b0cdb56ad3cee95966649e695edafd9 /modern/src/reports/ChartReportPage.js
parentadad08583e7829ce004388d949b8829cb7f92065 (diff)
downloadtrackermap-web-2110974542f2700b5d801a540eded8e850be04aa.tar.gz
trackermap-web-2110974542f2700b5d801a540eded8e850be04aa.tar.bz2
trackermap-web-2110974542f2700b5d801a540eded8e850be04aa.zip
Fix hours and accumulators
Diffstat (limited to 'modern/src/reports/ChartReportPage.js')
-rw-r--r--modern/src/reports/ChartReportPage.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/modern/src/reports/ChartReportPage.js b/modern/src/reports/ChartReportPage.js
index 3a2dfbf2..977c5158 100644
--- a/modern/src/reports/ChartReportPage.js
+++ b/modern/src/reports/ChartReportPage.js
@@ -57,6 +57,9 @@ const ChartReportPage = () => {
case 'volume':
formatted[key] = volumeFromLiters(value, volumeUnit).toFixed(2);
break;
+ case 'hours':
+ formatted[key] = (value / 1000).toFixed(2);
+ break;
default:
formatted[key] = value;
break;