98_count.pm: let Benni sleep well again

git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@10642 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
betateilchen
2016-01-26 18:32:13 +00:00
parent d5973a662e
commit f7b5d53447

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";
}