2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2024-11-22 09:49:50 +00:00

98_count.pm: let Benni sleep well again

git-svn-id: https://svn.fhem.de/fhem/trunk@10642 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
betateilchen 2016-01-26 18:32:13 +00:00
parent ee82d31e47
commit 3aeab87de2

View File

@ -25,7 +25,12 @@ sub CommandCount($$)
$n = 0;
my @list = devspec2array($param,$cl);
$n = int(@list);
$fill = "s" if $n != 1;
if ($n == 1) {
$n = (defined($defs{$list[0]})) ? 1 : "No";
$fill = "s" if ($n eq "No");
} else {
$fill = "s"
}
$str = "\nCount: $n device$fill for devspec $param\n";
}