mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-02-07 16:59:18 +00:00
SYSMON: null reading for absent mount points
git-svn-id: https://svn.fhem.de/fhem/trunk@4758 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
083dbbff24
commit
403bc263d5
@ -1,6 +1,7 @@
|
||||
# Add changes at the top of the list. Keep it in ASCII, and 80-char wide.
|
||||
# Do not insert empty lines here, update check depends on it.
|
||||
- SVN
|
||||
- bugfix: SYSMON: null reading for absent mount points
|
||||
- feature: DbLog: jokers "%" in device/reading definition are now possible
|
||||
- feature: SYSMON: new CPU Statistics and Plots
|
||||
- feature: changed 10_OWServer.pm and 11_OWDevice.pm to use
|
||||
|
@ -30,7 +30,7 @@ package main;
|
||||
use strict;
|
||||
use warnings;
|
||||
|
||||
my $VERSION = "1.3.2";
|
||||
my $VERSION = "1.3.3";
|
||||
|
||||
use constant {
|
||||
DATE => "date",
|
||||
@ -981,6 +981,13 @@ sub SYSMON_getFileSystemInfo ($$$)
|
||||
|
||||
shift @filesystems;
|
||||
|
||||
# Falls kein Eintrag gefunden (z.B: kein Medium im Laufwerk), mit Nullen fuellen (damit die Plots richtig funktionieren).
|
||||
if(defined $fDef) {
|
||||
$map->{$fName} = "Total: 0 MB, Used: 0 MB, 0 %, Available: 0 MB at ".$fs;
|
||||
} else {
|
||||
$map->{+FS_PREFIX.$fs} = "Total: 0 MB, Used: 0 MB, 0 %, Available: 0 MB at ".$fs;
|
||||
}
|
||||
|
||||
if(!defined $filesystems[0]) { return $map; } # Ausgabe leer
|
||||
|
||||
logF($hash, "SYSMON_getFileSystemInfo", "analyse line $filesystems[0]");
|
||||
@ -1001,13 +1008,14 @@ sub SYSMON_getFileSystemInfo ($$$)
|
||||
} else {
|
||||
$map->{+FS_PREFIX.$mnt_point} = $out_txt;
|
||||
}
|
||||
} else {
|
||||
if(defined $fDef) {
|
||||
$map->{$fName} = "not available";
|
||||
} else {
|
||||
$map->{+FS_PREFIX.$fs} = "not available";
|
||||
}
|
||||
}
|
||||
# else {
|
||||
# if(defined $fDef) {
|
||||
# $map->{$fName} = "not available";
|
||||
# } else {
|
||||
# $map->{+FS_PREFIX.$fs} = "not available";
|
||||
# }
|
||||
#}
|
||||
|
||||
return $map;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user