Changeset 438 for branches


Ignore:
Timestamp:
May 25, 2018, 4:09:50 AM (7 years ago)
Author:
rlwalsh
Message:

acpih: avoid divide-by-zero error in acpihGetPowerStatus()
patch from David Azarewicz

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/branch-1-0/src/helpers/acpih.c

    r429 r438  
    378378            }
    379379
    380             ulTmp = (BRemaining*100) / LastFull;
     380            ulTmp = 0;
     381            if (LastFull)
     382                ulTmp = (BRemaining*100) / LastFull;
    381383            if (ulTmp > 100)
    382384                ulTmp = 100;
Note: See TracChangeset for help on using the changeset viewer.