From ee8c693f3b51b4140f75716231135f6c5a648b13 Mon Sep 17 00:00:00 2001 From: "L. Bradley LaBoon" Date: Tue, 24 Mar 2020 17:01:48 -0400 Subject: [PATCH] Sleep for a bit after printing file progress to reduce CPU usage --- backly.c | 1 + 1 file changed, 1 insertion(+) diff --git a/backly.c b/backly.c index 8c11a24..48aa5ca 100644 --- a/backly.c +++ b/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++)