Searched defs:battery_info (Results 1 - 1 of 1) sorted by relevance

/osnet-11/usr/src/cmd/hal/hald/
H A Dutil_pm.c159 batteryInfo *battery_info; local
166 if ((battery_info = g_hash_table_lookup(saved_battery_info, id))) {
168 if ((cur_time == battery_info->last_time) || (chargeLevel == battery_info->last_level)) {
172 chargeRate = battery_info->last_chargeRate;
174 chargeRate = ((chargeLevel - battery_info->last_level) * 60 * 60) / (cur_time - battery_info->last_time);
182 battery_info->last_level = chargeLevel;
183 battery_info->last_time = cur_time;
184 battery_info
[all...]

Completed in 15 milliseconds