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:
parent
30d5c73fea
commit
27913c3699
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue