Skip to content
This repository has been archived by the owner on Jan 1, 2024. It is now read-only.

Commit

Permalink
1.0.1
Browse files Browse the repository at this point in the history
Multiply battery life percent by 100
  • Loading branch information
Kenneth Schnall committed Sep 3, 2017
1 parent 441a176 commit 436acb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion percentage/percentage/TrayIcon.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public TrayIcon()
private void timer_Tick(object sender, EventArgs e)
{
PowerStatus powerStatus = SystemInformation.PowerStatus;
batteryPercentage = powerStatus.BatteryLifePercent.ToString();
batteryPercentage = (powerStatus.BatteryLifePercent * 100).ToString();

Bitmap img = new Bitmap(DrawText(batteryPercentage, new Font(iconFont, iconFontSize), Color.White, Color.Black));

Expand Down

0 comments on commit 436acb0

Please sign in to comment.