Changeset b612ded6 in mainline


Ignore:
Timestamp:
2007-01-30T11:16:09Z (18 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
fa8e7d2
Parents:
831a04d0
Message:

more fine order of magnitude display

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/lib/func.c

    r831a04d0 rb612ded6  
    225225{
    226226        if (val > 1000000000000000000LL) {
    227                 *rv = val / 1000000000000000000LL;
     227                *rv = val / 1000000000000000LL;
    228228                *suffix = 'E';
    229         } else if (val > 1000000000000LL) {
     229        } else if (val > 1000000000000000LL) {
    230230                *rv = val / 1000000000000LL;
    231231                *suffix = 'T';
    232         } else if (val > 1000000LL) {
     232        } else if (val > 1000000000000LL) {
     233                *rv = val / 1000000000LL;
     234                *suffix = 'G';
     235        } else if (val > 1000000000LL) {
    233236                *rv = val / 1000000LL;
    234237                *suffix = 'M';
     238        } else if (val > 1000000LL) {
     239                *rv = val / 1000LL;
     240                *suffix = 'k';
    235241        } else {
    236242                *rv = val;
Note: See TracChangeset for help on using the changeset viewer.