VirtualBox

Changeset 13683 in vbox


Ignore:
Timestamp:
Oct 30, 2008 5:49:17 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
38647
Message:

Minor change

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/win/HostPowerWin.cpp

    r13682 r13683  
    160160                    {
    161161                        /* If the machine has less than 5% battery left (and is not connected to the AC), then we should save the state. */
    162                         if (    SystemPowerStatus.ACLineStatus == 0     /* offline */
    163                             &&  SystemPowerStatus.BatteryFlag != 255    /* unknown */
    164                             && (SystemPowerStatus.BatteryFlag & 4       /* critical battery status; less than 5% */))
     162                        if (   SystemPowerStatus.ACLineStatus == 0      /* offline */
     163                            && SystemPowerStatus.BatteryFlag  == 4      /* critical battery status; less than 5% */)
    165164                        {
    166165                            pPowerObj->notify(HostPowerEvent_BatteryLow);
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette