Fossil SCM
Fix a bug in the previous check-in.
Commit
b65ed0b106c2e6a4b7e78adb79dd991cd8a711a2
Parent
701c8e68c6a0363…
1 file changed
+3
-6
+3
-6
| --- src/stat.c | ||
| +++ src/stat.c | ||
| @@ -29,17 +29,14 @@ | ||
| 29 | 29 | static void bigSizeName(int nOut, char *zOut, sqlite3_int64 v){ |
| 30 | 30 | if( v<100000 ){ |
| 31 | 31 | sqlite3_snprintf(nOut, zOut, "%lld bytes", v); |
| 32 | 32 | }else if( v<1000000000 ){ |
| 33 | 33 | sqlite3_snprintf(nOut, zOut, "%lld bytes (%.1fMB)", |
| 34 | - (double)v/1000000.0, v); | |
| 35 | - }else if( v<1000000000000 ){ | |
| 34 | + v, (double)v/1000000.0); | |
| 35 | + }else{ | |
| 36 | 36 | sqlite3_snprintf(nOut, zOut, "%lld bytes (%.1fGB)", |
| 37 | - (double)v/1000000000.0, v); | |
| 38 | - }else{ | |
| 39 | - sqlite3_snprintf(nOut, zOut, "%lld bytes (%.1fTB)", | |
| 40 | - (double)v/1000000000000.0, v); | |
| 37 | + v, (double)v/1000000000.0); | |
| 41 | 38 | } |
| 42 | 39 | } |
| 43 | 40 | |
| 44 | 41 | /* |
| 45 | 42 | ** WEBPAGE: stat |
| 46 | 43 |
| --- src/stat.c | |
| +++ src/stat.c | |
| @@ -29,17 +29,14 @@ | |
| 29 | static void bigSizeName(int nOut, char *zOut, sqlite3_int64 v){ |
| 30 | if( v<100000 ){ |
| 31 | sqlite3_snprintf(nOut, zOut, "%lld bytes", v); |
| 32 | }else if( v<1000000000 ){ |
| 33 | sqlite3_snprintf(nOut, zOut, "%lld bytes (%.1fMB)", |
| 34 | (double)v/1000000.0, v); |
| 35 | }else if( v<1000000000000 ){ |
| 36 | sqlite3_snprintf(nOut, zOut, "%lld bytes (%.1fGB)", |
| 37 | (double)v/1000000000.0, v); |
| 38 | }else{ |
| 39 | sqlite3_snprintf(nOut, zOut, "%lld bytes (%.1fTB)", |
| 40 | (double)v/1000000000000.0, v); |
| 41 | } |
| 42 | } |
| 43 | |
| 44 | /* |
| 45 | ** WEBPAGE: stat |
| 46 |
| --- src/stat.c | |
| +++ src/stat.c | |
| @@ -29,17 +29,14 @@ | |
| 29 | static void bigSizeName(int nOut, char *zOut, sqlite3_int64 v){ |
| 30 | if( v<100000 ){ |
| 31 | sqlite3_snprintf(nOut, zOut, "%lld bytes", v); |
| 32 | }else if( v<1000000000 ){ |
| 33 | sqlite3_snprintf(nOut, zOut, "%lld bytes (%.1fMB)", |
| 34 | v, (double)v/1000000.0); |
| 35 | }else{ |
| 36 | sqlite3_snprintf(nOut, zOut, "%lld bytes (%.1fGB)", |
| 37 | v, (double)v/1000000000.0); |
| 38 | } |
| 39 | } |
| 40 | |
| 41 | /* |
| 42 | ** WEBPAGE: stat |
| 43 |