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

/osnet-11/usr/src/cmd/hal/hald/
H A Dutil_pm.c80 /** Given all the required parameters, this function will return the percentage
93 int percentage; local
101 percentage = ((double) chargeLevel / (double) chargeLastFull) * 100;
103 HAL_WARNING (("chargeLastFull %i, percentage returning -1!", chargeLastFull));
107 if (percentage > 100) {
108 HAL_WARNING (("Percentage %i, returning 100!", percentage));
112 if (percentage < 0) {
113 HAL_WARNING (("Percentage %i, returning -1!", percentage));
116 return percentage;

Completed in 109 milliseconds