progress bar: better overflow protection; more precise bar

function                                             old     new   delta
bb_progress_update                                   639     749    +110

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko
2011-02-10 14:25:51 +01:00
parent 9213a55bf0
commit 805aa9fec9
2 changed files with 34 additions and 25 deletions

View File

@@ -1592,8 +1592,9 @@ typedef struct bb_progress_t {
void bb_progress_init(bb_progress_t *p) FAST_FUNC;
void bb_progress_update(bb_progress_t *p, const char *curfile,
off_t beg_range, off_t transferred,
off_t totalsize) FAST_FUNC;
uoff_t beg_range,
uoff_t transferred,
uoff_t totalsize) FAST_FUNC;
extern const char *applet_name;