Merge pull request #198 from Lorgne/master

Get temperature for a NVMe
This commit is contained in:
Jordi Sanfeliu 2018-02-05 17:48:20 +01:00 committed by GitHub
commit 98dd737eb5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -236,6 +236,11 @@ sub disk_update {
$temp = $tmp[3] unless $temp;
chomp($temp);
}
if(/^Temperature: /) {
my @tmp = split(' ', $_);
$temp = $tmp[1] unless $temp;
chomp($temp);
}
}
close(IN);
if(!$temp) {