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:
@@ -969,7 +969,7 @@ sub statistics_FormatDuration($)
|
|||||||
my ($value) = @_;
|
my ($value) = @_;
|
||||||
#Tage
|
#Tage
|
||||||
my $returnstr ="";
|
my $returnstr ="";
|
||||||
if ($value > 86400) { $returnstr = sprintf "%dd ", int($value/86400); }
|
if ($value >= 86400) { $returnstr = sprintf "%dd ", int($value/86400); }
|
||||||
# Stunden
|
# Stunden
|
||||||
$value %= 86400;
|
$value %= 86400;
|
||||||
$returnstr .= sprintf "%02d:", int($value/3600);
|
$returnstr .= sprintf "%02d:", int($value/3600);
|
||||||
|
|||||||
Reference in New Issue
Block a user