From c5a3cac61e752be01430d8dbc201068f3c820e97 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn-Michael=20Miehe?= <40151420+ldericher@users.noreply.github.com> Date: Thu, 31 Aug 2023 23:11:24 +0000 Subject: [PATCH] default to one decimal place --- kiwi_simple_metrics/settings.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kiwi_simple_metrics/settings.py b/kiwi_simple_metrics/settings.py index 765cd06..49c2127 100644 --- a/kiwi_simple_metrics/settings.py +++ b/kiwi_simple_metrics/settings.py @@ -20,7 +20,7 @@ class MetricSettings(BaseModel): inverted: bool = False # per-value format string for reporting - report: str = "{name}: {value:.2f}%" + report: str = "{name}: {value:.1f}%" # per-metric format string for reporting report_outer: str = "{inner}" @@ -74,7 +74,7 @@ class MemoryMS(MetricSettings): class DiskMS(MetricSettings): name: str = "Disk Used" threshold: float = 85 - report: str = "{value:.2f}% ({name})" + report: str = "{value:.1f}% ({name})" report_outer: str = "{name}: {inner}" count: int | None = 1