diff options
Diffstat (limited to 'gadgets/gdbar.c')
-rw-r--r-- | gadgets/gdbar.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gadgets/gdbar.c b/gadgets/gdbar.c index c5364f1..f905542 100644 --- a/gadgets/gdbar.c +++ b/gadgets/gdbar.c @@ -44,7 +44,7 @@ pbar(const char* label, double perc, int maxc, int height, int pnl, int mode) { l = perc * ((mode ? (double)(maxc-2) : (double) maxc) / 100); if((int)(l + 0.5) >= (int)l) - l = l + 0.5; + l += 0.5; if((int)(perc + 0.5) >= (int)perc) rp = (int)(perc + 0.5); @@ -67,7 +67,7 @@ pbar(const char* label, double perc, int maxc, int height, int pnl, int mode) { fflush(stdout); } - int +int main(int argc, char *argv[]) { int i, nv; |