We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 009db60 commit 74c8631Copy full SHA for 74c8631
glean/src/core/metrics/types/memory_distribution.ts
@@ -63,12 +63,12 @@ export class MemoryDistributionMetric extends Metric<
63
};
64
}
65
66
- const negativeDuration = (v as number[]).find((key) => key < 0);
67
- if (negativeDuration) {
+ const negativeSample = (v as number[]).find((key) => key < 0);
+ if (negativeSample) {
68
return {
69
type: MetricValidation.Error,
70
errorType: ErrorType.InvalidValue,
71
- errorMessage: `Expected all durations to be greater than 0, got ${negativeDuration}`,
+ errorMessage: `Expected all samples to be greater than 0, got ${negativeSample}`,
72
73
74
0 commit comments