mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-22 14:16:42 +00:00
HMInfo:correct protocol calculation for "deleted" in long format
git-svn-id: https://svn.fhem.de/fhem/trunk@17010 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
a8bee0c1a3
commit
78feefdb7f
@ -1186,11 +1186,14 @@ sub HMinfo_GetFn($@) {#########################################################
|
||||
$_ =~ s/:*..-.. ..:..:..//g;# if ($type eq "short");
|
||||
$plSum[$c] += $1 if ($_ =~ m/^\s*(\d+)/);
|
||||
}
|
||||
elsif($_ =~m /^[ ,0-9]{1,5}:/){
|
||||
elsif($_ =~m /^[ ,0-9]{1,5}/){
|
||||
my ($cnt,$date) = split(":",$_,2);
|
||||
$_ = sprintf("%-5s-%s",$cnt,$date);
|
||||
$_ = sprintf("%-5s>%s",$cnt,$date);
|
||||
$plSum[$c] +=$cnt;
|
||||
}
|
||||
else{
|
||||
Log 1,"General $dName: $c : $_" if($_ !~ m/-/);#if ($c == 8);
|
||||
}
|
||||
$c++;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user