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 ec8f5f88d2
commit eb637fb828

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);