2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-08 01:14:19 +00:00

statistics: Bugfix duration 1d 00:00:00

git-svn-id: https://svn.fhem.de/fhem/trunk@7235 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
tpoitzsch 2014-12-16 18:32:37 +00:00
parent 25881efdaa
commit 5d4727fb28

View File

@ -969,7 +969,7 @@ sub statistics_FormatDuration($)
my ($value) = @_;
#Tage
my $returnstr ="";
if ($value > 86400) { $returnstr = sprintf "%dd ", int($value/86400); }
if ($value >= 86400) { $returnstr = sprintf "%dd ", int($value/86400); }
# Stunden
$value %= 86400;
$returnstr .= sprintf "%02d:", int($value/3600);