Changeset 12429
- Timestamp:
- May 12, 2011, 8:21:27 PM (12 years ago)
- Location:
- trunk/qt
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/qt/formatter.cc
r11092 r12429 93 93 94 94 QString 95 Formatter :: memToString( uint64_t bytes )95 Formatter :: memToString( int64_t bytes ) 96 96 { 97 if( !bytes ) 97 if( bytes < 1 ) 98 return tr( "Unknown" ); 99 else if( !bytes ) 98 100 return tr( "None" ); 99 101 else { … … 105 107 106 108 QString 107 Formatter :: sizeToString( uint64_t bytes )109 Formatter :: sizeToString( int64_t bytes ) 108 110 { 109 if( !bytes ) 111 if( bytes < 1 ) 112 return tr( "Unknown" ); 113 else if( !bytes ) 110 114 return tr( "None" ); 111 115 else { -
trunk/qt/formatter.h
r11092 r12429 33 33 public: 34 34 35 static QString memToString( uint64_t bytes );36 static QString sizeToString( uint64_t bytes );35 static QString memToString( int64_t bytes ); 36 static QString sizeToString( int64_t bytes ); 37 37 static QString speedToString( const Speed& speed ); 38 38 static QString percentToString( double x );
Note: See TracChangeset
for help on using the changeset viewer.