Fix wrong battery scale on linux
This commit is contained in:
@@ -329,9 +329,9 @@ namespace OpenVulkano
|
||||
{
|
||||
float value;
|
||||
powerSupplyFile >> value;
|
||||
return value;
|
||||
return value / 100.0f;
|
||||
}
|
||||
return 0;
|
||||
return -1;
|
||||
}
|
||||
|
||||
void SystemInfo::EnableEnergyEvents()
|
||||
|
||||
@@ -56,6 +56,7 @@ namespace OpenVulkano
|
||||
static bool IsDeviceInLowPowerMode();
|
||||
static bool GetDeviceHasBattery() { return GetDeviceBatteryState() != BatteryState::Unavailable; }
|
||||
static BatteryState GetDeviceBatteryState();
|
||||
// 0 to 1; -1 not available
|
||||
static float GetDeviceBatteryLevel();
|
||||
static void EnableEnergyEvents();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user