gui_update_stats(name, size, ((done *100) / size), now-start);
gui_update_stats(name, size, (int)(100 * (done*1.0/size)), (unsigned long)difftime(now, start));
static void print_stats(char *name, unsigned long size, unsigned long done,                        time_t start, time_t now){    float ratebs;    unsigned long eta;    char etastr[10];    int pct;    /* GUI Adaptation - Sept 2000 */    if (gui_mode)	gui_update_stats(name, size, ((done *100) / size), now-start);    else {	if (now > start)	    ratebs = (float) done / (now - start);	else	    ratebs = (float) done;	if (ratebs < 1.0)	    eta = size - done;	else	    eta = (unsigned long) ((size - done) / ratebs);	sprintf(etastr, "%02ld:%02ld:%02ld",		eta / 3600, (eta % 3600) / 60, eta % 60);	pct = (int) (100.0 * (float) done / size);	printf("\r%-25.25s | %10ld kB | %5.1f kB/s | ETA: %8s | %3d%%",	       name, done / 1024, ratebs / 1024.0,	       etastr, pct);	if (done == size)	    printf("\n");    }}