Skip to content

Commit e518a7c

Browse files
pohlm01davidv1992
authored andcommitted
Fix /metrics page displays true, false instead of 0, 1
1 parent 6d27d58 commit e518a7c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

statime-linux/src/metrics/format.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -310,12 +310,12 @@ fn format_path_trace_ds(
310310
format_metric(
311311
w,
312312
"path_trace_enable",
313-
"true if path trace options is enabled",
313+
"1 if path trace options is enabled, 0 otherwise",
314314
MetricType::Gauge,
315315
None,
316316
vec![Measurement {
317317
labels: labels.clone(),
318-
value: path_trace_ds.enable,
318+
value: format_bool!(path_trace_ds.enable),
319319
}],
320320
)?;
321321

0 commit comments

Comments
 (0)