summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/energy/rapl.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/energy/rapl.rs b/src/energy/rapl.rs
index 34b128e..3e6af00 100644
--- a/src/energy/rapl.rs
+++ b/src/energy/rapl.rs
@@ -42,7 +42,7 @@ impl PackageEnergy {
// 4. Read event config
let event_content = fs::read_to_string(event_path)?;
let event_config_str = event_content
- .split('=')
+ .split("=0x")
.nth(1)
.ok_or_else(|| io::Error::new(io::ErrorKind::InvalidData, "Invalid event format"))?;
let event_config = u64::from_str_radix(event_config_str.trim(), 16)