Skip to content

Commit

Permalink
Fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
michahn01 committed Feb 2, 2025
1 parent b928837 commit edc250d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion zeus/device/cpu/rapl.py
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,9 @@ def getTotalEnergyConsumption(self) -> CpuDramMeasurement:
dram_uj = data.get("dram_energy_uj")
if dram_uj is None:
if self.dram_available:
raise ZeusdError("DRAM energy should be available but no measurement was found")
raise ZeusdError(
"DRAM energy should be available but no measurement was found"
)
else:
dram_mj = dram_uj / 1000

Expand Down

0 comments on commit edc250d

Please sign in to comment.