Skip to content

Commit 74c8631

Browse files
committed
Rename negativeDuration to negativeSample to be more contextually correct
1 parent 009db60 commit 74c8631

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

glean/src/core/metrics/types/memory_distribution.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,12 +63,12 @@ export class MemoryDistributionMetric extends Metric<
6363
};
6464
}
6565

66-
const negativeDuration = (v as number[]).find((key) => key < 0);
67-
if (negativeDuration) {
66+
const negativeSample = (v as number[]).find((key) => key < 0);
67+
if (negativeSample) {
6868
return {
6969
type: MetricValidation.Error,
7070
errorType: ErrorType.InvalidValue,
71-
errorMessage: `Expected all durations to be greater than 0, got ${negativeDuration}`,
71+
errorMessage: `Expected all samples to be greater than 0, got ${negativeSample}`,
7272
};
7373
}
7474

0 commit comments

Comments
 (0)