mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-01 20:20:10 +00:00
fix: duplicated method
git-svn-id: https://svn.fhem.de/fhem/trunk@8708 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
3cbb496e0e
commit
dc853c0570
@ -4513,21 +4513,21 @@ sub SYSMON_ShowBarChartHtml($;$) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
sub SYSMON_secsToReadable($){
|
#sub SYSMON_secsToReadable($){
|
||||||
my $secs = shift;
|
# my $secs = shift;
|
||||||
my $y = floor($secs / 60/60/24/365);
|
# my $y = floor($secs / 60/60/24/365);
|
||||||
my $d = floor($secs/60/60/24) % 365;
|
# my $d = floor($secs/60/60/24) % 365;
|
||||||
my $h = floor(($secs / 3600) % 24);
|
# my $h = floor(($secs / 3600) % 24);
|
||||||
my $m = floor(($secs / 60) % 60);
|
# my $m = floor(($secs / 60) % 60);
|
||||||
my $s = $secs % 60;
|
# my $s = $secs % 60;
|
||||||
my $string = '';
|
# my $string = '';
|
||||||
$string .= $y.'y ' if ($y > 0);
|
# $string .= $y.'y ' if ($y > 0);
|
||||||
$string .= $d.'d ' if ($d > 0);
|
# $string .= $d.'d ' if ($d > 0);
|
||||||
$string .= $h.'h ' if ($h > 0);
|
# $string .= $h.'h ' if ($h > 0);
|
||||||
$string .= $m.'m ' if ($m > 0);
|
# $string .= $m.'m ' if ($m > 0);
|
||||||
$string .= $s.'s' if ($s > 0);
|
# $string .= $s.'s' if ($s > 0);
|
||||||
return $string;
|
# return $string;
|
||||||
}
|
#}
|
||||||
|
|
||||||
# --- SNX ---------------------------------------------------------------------
|
# --- SNX ---------------------------------------------------------------------
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user