Changeset 766 for trunk/dll/sysinfo.c


Ignore:
Timestamp:
Aug 5, 2007, 8:21:20 PM (13 years ago)
Author:
Gregg Young
Message:

format cleanup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/sysinfo.c

    r551 r766  
    259259      CHAR s[134], dev;
    260260
    261       if (DosQuerySysInfo(QSV_MAX_PATH_LENGTH, QSV_MAX_COMP_LENGTH + 2L,
     261      if (DosQuerySysInfo(QSV_MAX_PATH_LENGTH, QSV_MAX_COMP_LENGTH + 2,
    262262                          (PVOID) vals, (ULONG) sizeof(vals))) {
    263263        WinDismissDlg(hwnd, 0);
     
    300300
    301301            sprintf(s, "%-28.28s%lu (", names[x], vals[x]);
    302             vals[x] /= 60000L;
    303             numdays = vals[x] / (60L * 24L);
     302            vals[x] /= 60000;
     303            numdays = vals[x] / (60 * 24);
    304304            if (numdays)
    305305              sprintf(s + strlen(s), "%lu day%s, ", numdays,
    306                       &"s"[numdays == 1L]);
    307             nummins = vals[x] % (60L * 24L);
     306                      &"s"[numdays == 1]);
     307            nummins = vals[x] % (60 * 24);
    308308            sprintf(s + strlen(s), "%luh:%02lum)", nummins / 60,
    309309                    nummins % 60);
Note: See TracChangeset for help on using the changeset viewer.