Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:12.3:Update
procps
procps-v3.3.4-petabytes.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File procps-v3.3.4-petabytes.patch of Package procps
--- top/top.c +++ top/top.c 2012-10-30 11:24:24.226345149 +0000 @@ -1283,15 +1283,19 @@ end_justifies: * SK_Kb (1) it's kilobytes * SK_Mb (2) it's megabytes * SK_Gb (3) it's gigabytes - * SK_Tb (4) it's terabytes */ + * SK_Tb (4) it's terabytes + * SK_Pb (5) it's petabytes + * SK_Eb (6) it's exabytes + */ static const char *scale_unum (unsigned long num, int type, int width, int justr) { // kilobytes, megabytes, gigabytes, terabytes, duh! - static double scale[] = { 1024.0, 1024.0*1024, 1024.0*1024*1024, 1024.0*1024*1024*1024, 0 }; - // kilo, mega, giga, tera, none + static double scale[] = { 1024.0, 1024.0*1024, 1024.0*1024*1024, 1024.0*1024*1024*1024, + 1024.0*1024*1024*1024*1024, 1024.0*1024*1024*1024*1024*1024, 0 }; + // kilo, mega, giga, tera, peta, exa, none #ifdef CASEUP_SUFIX - static char nextup[] = { 'K', 'M', 'G', 'T', 0 }; + static char nextup[] = { 'K', 'M', 'G', 'T', 'P', 'E', 0 }; #else - static char nextup[] = { 'k', 'm', 'g', 't', 0 }; + static char nextup[] = { 'k', 'm', 'g', 't', 'p', 'e', 0 }; #endif static char buf[SMLBUFSIZ]; double *dp; --- top/top.h +++ top/top.h 2012-10-30 11:23:33.570344292 +0000 @@ -186,7 +186,7 @@ enum pflag { /* The scaling 'type' used with scale_unum() -- this is how the passed number is interpreted should scaling be necessary */ enum scale_unum { - SK_no, SK_Kb, SK_Mb, SK_Gb, SK_Tb + SK_no, SK_Kb, SK_Mb, SK_Gb, SK_Tb, SK_Pb, SK_Eb }; /* This typedef just ensures consistent 'process flags' handling */
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor