summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2020-10-06 19:28:00 +0200
committerDaniel Friesel <derf@finalrewind.org>2020-10-06 19:28:00 +0200
commite8ff730320dc53846d74f3568936b272990cabff (patch)
tree35a3b0ac43c259fa5f9ad62ccdce96cfd523ee73 /templates
parenta6bbd6302c798995227190bfe7f8a5e7288ff80f (diff)
Stats: Fix handling of negative cumulative arrival/departure delays1.18.1
Diffstat (limited to 'templates')
-rw-r--r--templates/_history_stats.html.ep10
1 files changed, 5 insertions, 5 deletions
diff --git a/templates/_history_stats.html.ep b/templates/_history_stats.html.ep
index 8197ed1..d6c7979 100644
--- a/templates/_history_stats.html.ep
+++ b/templates/_history_stats.html.ep
@@ -39,17 +39,17 @@
</tr>
<tr>
<th scope="row">Fahrtzeit</th>
- <td><%= sprintf('%02d:%02d', $stats->{min_travel_real} / 60, $stats->{min_travel_real} % 60) %> Stunden
- (nach Fahrplan: <%= sprintf('%02d:%02d', $stats->{min_travel_sched} / 60, $stats->{min_travel_sched} % 60) %>)<td>
+ <td><%= $stats->{min_travel_real_strf} %> Stunden
+ (nach Fahrplan: <%= $stats->{min_travel_sched_strf} %>)<td>
</tr>
<tr>
<th scope="row">Wartezeit (nur Umstiege)</th>
- <td><%= sprintf('%02d:%02d', $stats->{min_interchange_real} / 60, $stats->{min_interchange_real} % 60) %> Stunden
+ <td><%= $stats->{min_interchange_real_strf} %> Stunden
</tr>
<tr>
<th scope="row">Kumulierte Verspätung</th>
- <td>Bei Abfahrt: <%= sprintf('%02d:%02d', $stats->{delay_dep} / 60, $stats->{delay_dep} % 60) %> Stunden<br/>
- Bei Ankunft: <%= sprintf('%02d:%02d', $stats->{delay_arr} / 60, $stats->{delay_arr} % 60) %> Stunden</td>
+ <td>Bei Abfahrt: <%= $stats->{delay_dep_strf} %> Stunden<br/>
+ Bei Ankunft: <%= $stats->{delay_arr_strf} %> Stunden</td>
</tr>
</table>
</div>