From 285d4169ca478de59203f7dc70365d0c55028e7e Mon Sep 17 00:00:00 2001
From: FlorealRISSO <floreal.risso@univ3-tlse.fr>
Date: Mon, 13 Feb 2023 13:42:53 +0000
Subject: [PATCH] update option

---
 README.md      | 2 +-
 src/amd_rapl.h | 2 +-
 src/rapl.h     | 4 ++--
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/README.md b/README.md
index 10f5aaf..fddb2b1 100644
--- a/README.md
+++ b/README.md
@@ -32,7 +32,7 @@ SENSORS:
 	system load
 -d|--net-dev <net_dev>
 	network monitoring (if network_device is X, tries to detect it automatically)
--r|--rapl
+-r|--intel-rapl
 	RAPL
 -c|--cpu-temp
 	processor temperature
diff --git a/src/amd_rapl.h b/src/amd_rapl.h
index 1a16db8..e58cc16 100644
--- a/src/amd_rapl.h
+++ b/src/amd_rapl.h
@@ -34,7 +34,7 @@ Sensor amd_rapl = {
 Optparse amd_rapl_opt[1] = {
     {
         .longname = "amd-rapl",
-        .shortname = 'a',
+        .shortname = 'r',
         .argtype = OPTPARSE_NONE,
         .usage_arg = NULL,
         .usage_msg = "AMD RAPL",
diff --git a/src/rapl.h b/src/rapl.h
index a02624d..7720f07 100644
--- a/src/rapl.h
+++ b/src/rapl.h
@@ -33,11 +33,11 @@ Sensor rapl = {
 
 Optparse rapl_opt[1] = {
     {
-        .longname = "rapl",
+        .longname = "intel-rapl",
         .shortname = 'r',
         .argtype = OPTPARSE_NONE,
         .usage_arg = NULL,
-        .usage_msg = "RAPL",
+        .usage_msg = "INTEL RAPL",
     },
 };
 
-- 
GitLab