mirror of
https://github.com/morgan9e/gnome-shell-extension-freon
synced 2026-04-14 00:14:14 +09:00
sensorsUtil: read nvme sensors as disk temperature sensors (#218)
Extend e8848c2baa ("sensorsUtil: read drivetemp sensors as disk
temperature sensors (#217)") to also identify NVMe temperature sensors.
This commit is contained in:
@@ -71,7 +71,7 @@ var SensorsUtil = class extends CommandLineUtil.CommandLineUtil {
|
||||
if (!data.hasOwnProperty(chipset) || (gpuFamily != gpuFilter.test(chipset) && tempType))
|
||||
continue;
|
||||
|
||||
let diskFilter = /(drivetemp)/;
|
||||
let diskFilter = /(drivetemp|nvme)/;
|
||||
let diskFamily = (sensorFamily === 'disk')
|
||||
if (!data.hasOwnProperty(chipset) || (diskFamily != diskFilter.test(chipset) && tempType))
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user