diff --git a/src/linux/btop_collect.cpp b/src/linux/btop_collect.cpp index d500192..1799b0d 100644 --- a/src/linux/btop_collect.cpp +++ b/src/linux/btop_collect.cpp @@ -835,7 +835,7 @@ namespace Cpu { if (b.use_power) { if (not b.power_now.empty()) { try { - watts = (float)stoll(readfile(b.energy_now, "-1")) / 1000000.0; + watts = (float)stoll(readfile(b.power_now, "-1")) / 1000000.0; } catch (const std::invalid_argument&) { } catch (const std::out_of_range&) { }