2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-02-01 01:09:47 +00:00

changed uptime format

git-svn-id: https://svn.fhem.de/fhem/trunk@3556 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
justme-1968 2013-07-31 08:35:29 +00:00
parent 8b96b05404
commit 5697696594

View File

@ -148,6 +148,7 @@ SYSSTAT_Attr($$$)
sub SYSSTAT_getLoadAVG($);
sub SYSSTAT_getPiTemp($);
sub SYSSTAT_getUptime($);
sub
SYSSTAT_GetUpdate($)
{
@ -354,7 +355,8 @@ SYSSTAT_getUptime( $ )
my $uptime = SYSSTAT_readCmd($hash,"uptime",0);
$uptime = $1 if( $uptime =~ m/up\s+([\d:]*)/ );
$uptime = $1 if( $uptime =~ m/up\s((\d+\D+,\s)?[\d:]+)/ );
$uptime = "0 days, $uptime" if( !$2);
return $uptime;
}