diff --git a/healthd/BatteryMonitor.cpp b/healthd/BatteryMonitor.cpp index 110ed038f..ae84d1e18 100644 --- a/healthd/BatteryMonitor.cpp +++ b/healthd/BatteryMonitor.cpp @@ -39,7 +39,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 {