Further CPU Experimental Changes
CI / test (push) Failing after 4s
Release rolling / release (push) Successful in 7m14s

This commit is contained in:
Raven Scott
2026-07-21 12:17:06 -04:00
parent 1d902a89b0
commit ac4718cb66
11 changed files with 87 additions and 85 deletions
+3 -5
View File
@@ -6,6 +6,7 @@ import fs from 'fs'
import path from 'path'
import { CollectorPlugin } from './plugin.js'
import { registerChart } from '../../../shared/metrics.js'
import { readFileBuf } from '../../utils/fd-cache.js'
export function isBcacheEnabled() {
const v = process.env.PEARDATA_BCACHE
@@ -15,11 +16,8 @@ export function isBcacheEnabled() {
}
function readNum(p) {
try {
return Number(fs.readFileSync(p, 'utf8').trim()) || 0
} catch {
return 0
}
const raw = readFileBuf(p)
return raw ? Number(raw.trim()) || 0 : 0
}
export class BcacheCollector extends CollectorPlugin {