1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

fix progressbar output in advio

This commit is contained in:
Steffen Vogel 2017-03-20 09:07:29 -03:00
parent 30d5c73fea
commit 27913c3699

View file

@ -150,6 +150,7 @@ int aupload(AFILE *af)
fseek(af->file, 0, SEEK_SET);
res = curl_easy_perform(af->curl);
printf("\n"); /* do not continue in the same line as the progress bar */
fseek(af->file, pos, SEEK_SET); /* Restore old stream pointer */
@ -169,6 +170,7 @@ int adownload(AFILE *af)
rewind(af->file);
res = curl_easy_perform(af->curl);
printf("\n"); /* do not continue in the same line as the progress bar */
switch (res) {
case CURLE_OK:
curl_easy_getinfo(af->curl, CURLINFO_RESPONSE_CODE, &code);