static double wsum, wcount;
static struct file *file;
+static const char throbber[] = "|<-<|>->";
+static unsigned throbix = 0;
+
static void report_progress(secaddr pos)
{
char etastr[32];
if (flags&F_ALLPROGRESS) percent = pos*100.0/limit;
else percent = ndone*100.0/nsectors;
print_progress
- ("copied %.1f%% (%"PRIuSEC" of %"PRIuSEC"; %.1f %sB/s, ETA %s)",
- percent, pos, limit, rate, unit, etastr);
+ ("%c copied %.1f%% (%"PRIuSEC" of %"PRIuSEC"; %.1f %sB/s, ETA %s)",
+ throbber[throbix], percent, pos, limit, rate, unit, etastr);
+ throbix++; if (!throbber[throbix]) throbix = 0;
if (file && id_kind(file->id) == VOB) {
append_progress(" -- %s %d %.1f%%",
id_part(file->id) ? "title" : "menu",