From 17ff51e8a027b3a9a798098ace8478b3f62a3139 Mon Sep 17 00:00:00 2001
From: Georges Da Costa <dacosta@irit.fr>
Date: Mon, 25 Apr 2022 15:00:40 +0200
Subject: [PATCH] Updates g5k sensors

---
 expetator/monitors/kwollect.py | 10 +++++-----
 setup.py                       |  4 ++--
 2 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/expetator/monitors/kwollect.py b/expetator/monitors/kwollect.py
index 88c7243..feadeab 100644
--- a/expetator/monitors/kwollect.py
+++ b/expetator/monitors/kwollect.py
@@ -10,12 +10,12 @@ def get_g5k_target_metric():
 
     if cluster_name in ['grisou', 'graoully', 'grimoire',
                         'grisou', 'gros', 'gruss', 'paravance']:
-        target_metric = 'pdu_outlet_power_watt'
-    elif cluster_name in ['troll', 'yeti', 'gemini', 'neowise',
+        return 'pdu_outlet_power_watt'
+    if cluster_name in ['troll', 'yeti', 'gemini', 'neowise',
                           'orion', 'pyxis', 'sagittaire', 'taurus']:
-        target_metric = 'wattmetre_power_watt'
-    else:
-        target_metric = 'bmc_node_power_watt'
+        return 'wattmetre_power_watt'
+
+    return 'bmc_node_power_watt'
 
 class Power:
     'Monitoring using Kwollect on g5k'
diff --git a/setup.py b/setup.py
index bfb4ad9..9e0c463 100644
--- a/setup.py
+++ b/setup.py
@@ -5,13 +5,13 @@ with open("README.md", "r") as fh:
 
 setuptools.setup(
     name="expetator",
-    version="0.3.10",
+    version="0.3.11",
     author="Georges Da Costa",
     author_email="georges.da-costa@irit.fr",
     description="A framework for monitoring HPC applications using DVFS",
     long_description=long_description,
     long_description_content_type="text/markdown",
-    url="https://github.com/georges-da-costa/expetator",
+    url="https://gitlab.irit.fr/sepia-pub/expetator",
     packages=setuptools.find_packages(),
     classifiers=[
         "Programming Language :: Python :: 3",
-- 
GitLab