Skip to content

Commit

Permalink
Show battery percentage as integer
Browse files Browse the repository at this point in the history
  • Loading branch information
hrubymar10 authored and jyrkive committed Oct 30, 2018
1 parent de183ee commit 0116e7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/reports.cpp
Expand Up @@ -1560,7 +1560,7 @@ REPORT_GENERATOR(battery, /*rc*/)
std::ostringstream ss;
std::string battery = "";
if (desktop::battery_info::does_device_have_battery()) {
ss << boost::lexical_cast<std::string>(desktop::battery_info::get_battery_percentage()) + "%";
ss << boost::lexical_cast<std::string>((int)desktop::battery_info::get_battery_percentage()) + "%";
}

return text_report(ss.str(), _("Battery"));
Expand Down

0 comments on commit 0116e7c

Please sign in to comment.