Commit 86def1d1 authored by José Jorge's avatar José Jorge Committed by Nate Graham
Browse files

Fix ksysguard acpi cooling devices

Summary: The cooling devices state never changed from zero. It was wrongly calculated as a	fraction from 0 to 1, instead of a percentage.

Reviewers: davidedmundson

Reviewed By: davidedmundson

Subscribers: ngraham, plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D24998
parent f9255000
......@@ -422,7 +422,7 @@ void printCoolingDeviceState(const char *cmd) {
int maximum = getSysFileValue("cooling_device", fan, "max_state");
int state = 0;
if (current > 0 && maximum > 0) {
state = current / maximum;
state = (current * 100) / maximum; /* state is a percentage */
}
output( "%d\n", state);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment