mirror of https://github.com/mikaku/Monitorix.git
Fix smb counter in user.pm in case smb is not installed.
Before the smb value was -1 if no smbstatus was found, resulting in -nan values. Now the behaviour is the same as for macusers.
This commit is contained in:
parent
41c14beba6
commit
ac8b4a0eae
|
@ -144,7 +144,7 @@ sub user_update {
|
|||
}
|
||||
}
|
||||
close(IN);
|
||||
$smb--;
|
||||
$smb-- if $smb > 0;
|
||||
|
||||
open(IN, "macusers 2>/dev/null |");
|
||||
@data = <IN>;
|
||||
|
|
Loading…
Reference in New Issue