Further CPU Experimental Changes
This commit is contained in:
@@ -14,6 +14,7 @@ import {
|
||||
makeSensorTempChart,
|
||||
makeThermalZoneChart,
|
||||
} from '../../../shared/metrics.js'
|
||||
import { readFileBuf } from '../../utils/fd-cache.js'
|
||||
import logger from '../../utils/logger.js'
|
||||
|
||||
const log = logger.child('sensors')
|
||||
@@ -26,11 +27,7 @@ export function isSensorsEnabled() {
|
||||
}
|
||||
|
||||
function readFile(p) {
|
||||
try {
|
||||
return fs.readFileSync(p, 'utf8')
|
||||
} catch {
|
||||
return null
|
||||
}
|
||||
return readFileBuf(p)
|
||||
}
|
||||
|
||||
function makeSensorFanChart(chip, label) {
|
||||
|
||||
Reference in New Issue
Block a user