Rev 2089 | Rev 2184 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2089 | Rev 2104 | ||
---|---|---|---|
Line 222... | Line 222... | ||
222 | 222 | ||
223 | 223 | ||
224 | void order(const uint64_t val, uint64_t *rv, char *suffix) |
224 | void order(const uint64_t val, uint64_t *rv, char *suffix) |
225 | { |
225 | { |
226 | if (val > 1000000000000000000LL) { |
226 | if (val > 1000000000000000000LL) { |
227 | *rv = val / 1000000000000000000LL; |
227 | *rv = val / 1000000000000000LL; |
228 | *suffix = 'E'; |
228 | *suffix = 'E'; |
229 | } else if (val > 1000000000000LL) { |
229 | } else if (val > 1000000000000000LL) { |
230 | *rv = val / 1000000000000LL; |
230 | *rv = val / 1000000000000LL; |
231 | *suffix = 'T'; |
231 | *suffix = 'T'; |
- | 232 | } else if (val > 1000000000000LL) { |
|
- | 233 | *rv = val / 1000000000LL; |
|
- | 234 | *suffix = 'G'; |
|
232 | } else if (val > 1000000LL) { |
235 | } else if (val > 1000000000LL) { |
233 | *rv = val / 1000000LL; |
236 | *rv = val / 1000000LL; |
234 | *suffix = 'M'; |
237 | *suffix = 'M'; |
- | 238 | } else if (val > 1000000LL) { |
|
- | 239 | *rv = val / 1000LL; |
|
- | 240 | *suffix = 'k'; |
|
235 | } else { |
241 | } else { |
236 | *rv = val; |
242 | *rv = val; |
237 | *suffix = ' '; |
243 | *suffix = ' '; |
238 | } |
244 | } |
239 | } |
245 | } |