mirror of https://github.com/mikaku/Monitorix.git
Add support for mV unit to voltage keys in lmsens.
This commit is contained in:
parent
544152cd37
commit
34ea9fe59b
|
@ -316,7 +316,9 @@ sub lmsens_update {
|
|||
$l++;
|
||||
$tmp = $data[$l];
|
||||
}
|
||||
my ($value, undef) = split(' ', $tmp);
|
||||
my ($value, $unit) = split(' ', $tmp);
|
||||
($unit, undef) = split(' ', $unit);
|
||||
$value /= 1000 if ($unit eq "mV");
|
||||
$volt[$n] = $value;
|
||||
# check alerts for each sensor defined
|
||||
lmsens_alerts($config, $str, $value);
|
||||
|
|
Loading…
Reference in New Issue