Skip to content

Commit

Permalink
Merge pull request #836 from vsey/Fix-Typo
Browse files Browse the repository at this point in the history
  • Loading branch information
aristocratos authored Apr 30, 2024
2 parents 3a6f816 + f8cfa70 commit 8c1a8ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/linux/btop_collect.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -725,7 +725,7 @@ namespace Cpu {
if (fs::exists(bat_dir / "power_now")) {
new_bat.power_now = bat_dir / "power_now";
}
else if ((fs::exists(bat_dir / "current_now")) and (fs::exists(bat_dir / "current_now"))) {
else if ((fs::exists(bat_dir / "current_now")) and (fs::exists(bat_dir / "voltage_now"))) {
new_bat.current_now = bat_dir / "current_now";
new_bat.voltage_now = bat_dir / "voltage_now";
}
Expand Down

0 comments on commit 8c1a8ab

Please sign in to comment.