Browse Source

Sleep for a bit after printing file progress to reduce CPU usage

master v1.40
L. Bradley LaBoon 2 years ago
parent
commit
ee8c693f3b
  1. 1
      backly.c

1
backly.c

@ -284,6 +284,7 @@ void copyNew(char *src, int srcPrefix, char *dest, int destPrefix, int testMode)
printf("\b \b");
numPrinted = printf("%.2lf%%", pDone * 100);
fflush(stdout);
usleep(50000);
}
}
for (int i = 0; i < numPrinted; i++)

Loading…
Cancel
Save