Fossil SCM

Make sure the "fossil rebuild" command always ends up showing "100.0% complete", not "99.9%" or "100.1%".

drh 2012-02-21 02:01 trunk
Commit 3a44f95f40a193739aaafc2409f155df43e74a6f
1 file changed +1
--- src/rebuild.c
+++ src/rebuild.c
@@ -424,10 +424,11 @@
424424
if( ttyOutput && !g.fQuiet && totalSize>0 ){
425425
processCnt += incrSize;
426426
percent_complete((processCnt*1000)/totalSize);
427427
}
428428
if(!g.fQuiet && ttyOutput ){
429
+ percent_complete(1000);
429430
fossil_print("\n");
430431
}
431432
return errCnt;
432433
}
433434
434435
--- src/rebuild.c
+++ src/rebuild.c
@@ -424,10 +424,11 @@
424 if( ttyOutput && !g.fQuiet && totalSize>0 ){
425 processCnt += incrSize;
426 percent_complete((processCnt*1000)/totalSize);
427 }
428 if(!g.fQuiet && ttyOutput ){
 
429 fossil_print("\n");
430 }
431 return errCnt;
432 }
433
434
--- src/rebuild.c
+++ src/rebuild.c
@@ -424,10 +424,11 @@
424 if( ttyOutput && !g.fQuiet && totalSize>0 ){
425 processCnt += incrSize;
426 percent_complete((processCnt*1000)/totalSize);
427 }
428 if(!g.fQuiet && ttyOutput ){
429 percent_complete(1000);
430 fossil_print("\n");
431 }
432 return errCnt;
433 }
434
435

Keyboard Shortcuts

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