Changeset 955

Show
Ignore:
Timestamp:
12/19/06 22:51:09 (2 years ago)
Author:
gboggs
Message:

Re-fixed the sprintf() calls to just use digits instead of floats for bytes. BugId: 45951

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/wheeljack/lib/MT/App/CMS.pm

    r951 r955  
    933933            $row->{file_size} = $size; 
    934934            if ($size < 1024) { 
    935                 $row->{file_size_formatted} = sprintf("%.1f Bytes", $size); 
     935                $row->{file_size_formatted} = sprintf("%d Bytes", $size); 
    936936            } elsif ($size < 1024000) { 
    937937                $row->{file_size_formatted} = sprintf("%.1f KB", $size / 1024); 
  • branches/wheeljack/lib/MT/Template/ContextHandlers.pm

    r950 r955  
    47054705        if ($format eq '1') { 
    47064706            if ($size < 1024) { 
    4707                 $ret = sprintf("%s Bytes", $size); 
     4707                $ret = sprintf("%d Bytes", $size); 
    47084708            } elsif ($size < 1024000) { 
    47094709                $ret = sprintf("%.1f KB", $size / 1024);