Updates
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user