statistics: Bugfix duration 1d 00:00:00

git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@7235 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
tpoitzsch
2014-12-16 18:32:37 +00:00
parent 35281e50de
commit ceaa8bd3c8

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