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

Commit

Permalink
fix: reverse option precise value
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinNitroG committed Dec 11, 2024
1 parent 66d08b4 commit e88f1fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/processInfo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class ProcessInfo {
const fullChargedNum: number =
ProcessInfo.#extractCapacityNumber(fullCharged);
let health: number = (fullChargedNum / designNum) * 100;
if (options.preciseHealth as boolean | string) {
if (!options.preciseHealth as boolean | string) {
health = Math.round(health);
}
const status: Status = getStatus(health);
Expand Down

0 comments on commit e88f1fa

Please sign in to comment.