From 641fab7360cc51abe7f1a171409bd2fb8465286c Mon Sep 17 00:00:00 2001 From: Arne Tarara Date: Wed, 4 Jan 2023 16:22:04 +0100 Subject: [PATCH] Powerspy2 must have mW unit --- tools/metric_providers/psu/energy/ac/powerspy2/provider.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/metric_providers/psu/energy/ac/powerspy2/provider.py b/tools/metric_providers/psu/energy/ac/powerspy2/provider.py index dd424e784..bdb1f76de 100755 --- a/tools/metric_providers/psu/energy/ac/powerspy2/provider.py +++ b/tools/metric_providers/psu/energy/ac/powerspy2/provider.py @@ -15,6 +15,7 @@ def __init__(self, resolution): self._metric_name = 'psu_energy_powerspy2' self._metrics = {'time': int, 'value': int} self._resolution = resolution + self._unit = 'mW' super().__init__() def start_profiling(self, containers=None):