* Round cargo mass display to first decimal digit in dash.html. master
authorUrban Wallasch <urban.wallasch@freenet.de>
Wed, 18 Aug 2021 14:35:08 +0000 (16:35 +0200)
committerUrban Wallasch <urban.wallasch@freenet.de>
Wed, 18 Aug 2021 14:35:08 +0000 (16:35 +0200)
dash.html

index d5d42142e42fac19bb47ca719446d669436087ff..a09b4d6454ac2a2604248c165e7983f27ef07952 100644 (file)
--- a/dash.html
+++ b/dash.html
@@ -510,7 +510,7 @@ function update_cb() {
     // current job parameters:
     if ( !last_tele || last_tele.job_isvalid != tele.job_isvalid ) {
       cargo.innerHTML = tele.job_isvalid ? tele.job_cargo : '-';
-      cargomass.innerHTML = tele.job_isvalid ? (tele.job_cargo_mass / 1000).toFixed(0) + 't' : '-';
+      cargomass.innerHTML = tele.job_isvalid ? (tele.job_cargo_mass / 1000).toFixed(1) + 't' : '-';
       source.innerHTML = tele.job_isvalid ? tele.job_source_city : '-';
       destination.innerHTML = tele.job_isvalid ? tele.job_destination_city : '-';
       job_dist.innerHTML = tele.job_isvalid ? tele.job_planned_distance + 'km' : '-';