Changeset 11060 for trunk/utils/show.c


Ignore:
Timestamp:
Jul 28, 2010, 12:31:11 AM (12 years ago)
Author:
charles
Message:

(trunk) #3045 "size units" -- sync the default units in all the apps s.t. they're consistent with each other

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/utils/show.c

    r10960 r11060  
    3535#define MEM_T_STR "TiB"
    3636
    37 #define DISK_K 1000
     37#define DISK_K 1024
    3838#define DISK_B_STR "B"
    39 #define DISK_K_STR "kB"
    40 #define DISK_M_STR "MB"
    41 #define DISK_G_STR "GB"
    42 #define DISK_T_STR "TB"
    43 
    44 #define SPEED_K 1000
     39#define DISK_K_STR "KiB"
     40#define DISK_M_STR "MiB"
     41#define DISK_G_STR "GiB"
     42#define DISK_T_STR "TiB"
     43
     44#define SPEED_K 1024
    4545#define SPEED_B_STR "B/s"
    46 #define SPEED_K_STR "kB/s"
    47 #define SPEED_M_STR "MB/s"
    48 #define SPEED_G_STR "GB/s"
    49 #define SPEED_T_STR "TB/s"
     46#define SPEED_K_STR "KiB/s"
     47#define SPEED_M_STR "MiB/s"
     48#define SPEED_G_STR "GiB/s"
     49#define SPEED_T_STR "TiB/s"
    5050
    5151static tr_option options[] =
Note: See TracChangeset for help on using the changeset viewer.