mirror of
https://github.com/moparisthebest/pacman
synced 2024-12-24 08:48:50 -05:00
Attempted fix for x86_64 - switched some unsigned char variables to ints, and
prefixed sync_fnm with the length when outputting - waiting for verification
This commit is contained in:
parent
e21f4c8f2e
commit
52363b4327
@ -45,7 +45,7 @@ int offset;
|
|||||||
struct timeval t0, t;
|
struct timeval t0, t;
|
||||||
float rate;
|
float rate;
|
||||||
int xfered1;
|
int xfered1;
|
||||||
unsigned char eta_h, eta_m, eta_s;
|
unsigned int eta_h, eta_m, eta_s;
|
||||||
|
|
||||||
/* pacman options */
|
/* pacman options */
|
||||||
extern config_t *config;
|
extern config_t *config;
|
||||||
@ -105,9 +105,9 @@ int log_progress(netbuf *ctl, int xfered, void *arg)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if(rate > 1000) {
|
if(rate > 1000) {
|
||||||
printf("%s %6dK %6.0fK/s %02d:%02d:%02d [", sync_fnm, ((xfered+offset) / 1024), rate, eta_h, eta_m, eta_s);
|
printf("%*s %6dK %6.0fK/s %02d:%02d:%02d [", PM_DLFNM_LEN, sync_fnm, ((xfered+offset) / 1024), rate, eta_h, eta_m, eta_s);
|
||||||
} else {
|
} else {
|
||||||
printf("%s %6dK %6.1fK/s %02d:%02d:%02d [", sync_fnm, ((xfered+offset) / 1024), rate, eta_h, eta_m, eta_s);
|
printf("%*s %6dK %6.1fK/s %02d:%02d:%02d [", PM_DLFNM_LEN, sync_fnm, ((xfered+offset) / 1024), rate, eta_h, eta_m, eta_s);
|
||||||
}
|
}
|
||||||
cur = (int)((maxcols-57)*pct/100);
|
cur = (int)((maxcols-57)*pct/100);
|
||||||
for(i = 0; i < maxcols-57; i++) {
|
for(i = 0; i < maxcols-57; i++) {
|
||||||
|
@ -26,7 +26,7 @@ extern int offset;
|
|||||||
extern struct timeval t0, t;
|
extern struct timeval t0, t;
|
||||||
extern float rate;
|
extern float rate;
|
||||||
extern int xfered1;
|
extern int xfered1;
|
||||||
extern unsigned char eta_h, eta_m, eta_s;
|
extern unsigned int eta_h, eta_m, eta_s;
|
||||||
|
|
||||||
#ifdef __FTPLIB_H
|
#ifdef __FTPLIB_H
|
||||||
int log_progress(netbuf *ctl, int xfered, void *arg);
|
int log_progress(netbuf *ctl, int xfered, void *arg);
|
||||||
|
Loading…
Reference in New Issue
Block a user