diff --git a/healthd/BatteryMonitor.cpp b/healthd/BatteryMonitor.cpp index 91943146a..8fb58dc40 100644 --- a/healthd/BatteryMonitor.cpp +++ b/healthd/BatteryMonitor.cpp @@ -40,7 +40,7 @@ #define FAKE_BATTERY_CAPACITY 42 #define FAKE_BATTERY_TEMPERATURE 424 #define ALWAYS_PLUGGED_CAPACITY 100 -#define MILLION 10000000.0 +#define MILLION 1.0e6 #define DEFAULT_VBUS_VOLTAGE 5000000 namespace android {