Fossil SCM

Fix a bug in the previous check-in.

drh 2012-04-02 01:19 trunk
Commit b65ed0b106c2e6a4b7e78adb79dd991cd8a711a2
1 file changed +3 -6
+3 -6
--- src/stat.c
+++ src/stat.c
@@ -29,17 +29,14 @@
2929
static void bigSizeName(int nOut, char *zOut, sqlite3_int64 v){
3030
if( v<100000 ){
3131
sqlite3_snprintf(nOut, zOut, "%lld bytes", v);
3232
}else if( v<1000000000 ){
3333
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{
3636
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);
4138
}
4239
}
4340
4441
/*
4542
** WEBPAGE: stat
4643
--- 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

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button