Updates
CI / test (push) Successful in 1m0s
Release rolling / release (push) Successful in 7m12s

This commit is contained in:
Raven Scott
2026-07-18 23:34:26 -04:00
parent 4633210eea
commit e503e92dd4
2 changed files with 11 additions and 28 deletions
+2 -2
View File
@@ -252,7 +252,7 @@ function pickNum(...vals) {
function resolveRelative(v, nowSec, anchor) {
if (v == null) return nowSec
if (v <= 0) {
// relative to anchor (Netdata-style): before=0 → now; after=-N → before-N
// relative to anchor: before=0 → now; after=-N → before-N
return anchor + v
}
return v
@@ -424,7 +424,7 @@ function scoreAnomalyRate(chartId, def, windows) {
}
}
/** Volume heuristic (Netdata-inspired). Higher = more changed. */
/** Volume heuristic. Higher = more changed between baseline and highlight. */
export function volumeScore(baseline, highlight) {
const baseAvg = mean(baseline)
const highAvg = mean(highlight)