Changeset 343
- Timestamp:
- 07/10/10 07:23:23 (19 months ago)
- Location:
- trunk
- Files:
-
- 1 added
- 2 edited
- 1 moved
-
. (modified) (1 prop)
-
dev/build.mingw.bat (added)
-
dev/build.msvc.bat (moved) (moved from trunk/dev/build.bat)
-
form_request.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:ignore
-
old new 2 2 avalon.pro 3 3 Makefile 4 Makefile.* 4 Makefile.Debug 5 Makefile.Release 6 object_script.avalon.Debug 7 object_script.avalon.Release
-
- Property svn:ignore
-
trunk/form_request.cpp
r334 r343 144 144 if (size < (qint64)1024) 145 145 { 146 sprintf(buf, "%0 Ld bytes",size);146 sprintf(buf, "%0d bytes", (int)size); 147 147 return QString::fromUtf8(buf); 148 148 } 149 149 else if (size < (qint64)1024 * 1024) 150 150 { 151 sprintf(buf, "%0.2 Lf KB", (longdouble)size / 1024);151 sprintf(buf, "%0.2f KB", (double)size / 1024); 152 152 return QString::fromUtf8(buf); 153 153 } 154 154 else if (size < (qint64)1024 * 1024 * 1024) 155 155 { 156 sprintf(buf, "%0.2 Lf MB", (longdouble)size / 1024 / 1024);156 sprintf(buf, "%0.2f MB", (double)size / 1024 / 1024); 157 157 return QString::fromUtf8(buf); 158 158 } 159 159 else 160 160 { 161 sprintf(buf, "%0.2 Lf GB", (longdouble)size / 1024 / 1024 / 1024);161 sprintf(buf, "%0.2f GB", (double)size / 1024 / 1024 / 1024); 162 162 return QString::fromUtf8(buf); 163 163 }
Note: See TracChangeset
for help on using the changeset viewer.
