File libs3-progress.diff of Package libs3
Index: libs3-master/src/s3.c
===================================================================
--- libs3-master.orig/src/s3.c
+++ libs3-master/src/s3.c
@@ -1390,14 +1390,17 @@ static int putObjectDataCallback(int buf
// Avoid a weird bug in MingW, which won't print the second integer
// value properly when it's in the same call, so print separately
printf("%llu bytes remaining ",
(unsigned long long) data->contentLength);
- printf("(%d%% complete) ...\n",
+ printf("(%d%% complete) ... \r",
(int) (((data->originalContentLength -
data->contentLength) * 100) /
data->originalContentLength));
}
+ if (!data->contentLength)
+ printf("\n");
+
return ret;
}
@@ -1639,8 +1642,9 @@ static void put_object(int argc, char **
}
else if (data.gb) {
growbuffer_destroy(data.gb);
}
+ //printf("\n");
if (statusG != S3StatusOK) {
printError();
}