Revert print_progress to use handle->data
This commit is contained in:
parent
e637d36d97
commit
1bb140818a
@ -31,8 +31,8 @@ void after(uv_work_t *req, int status) {
|
||||
}
|
||||
|
||||
void print_progress(uv_async_t *handle) {
|
||||
double pct = atomic_load_explicit(&percentage, memory_order_acquire);
|
||||
fprintf(stderr, "Downloaded %.2f%%\n", pct);
|
||||
double percentage = *((double *)handle->data);
|
||||
fprintf(stderr, "Downloaded %.2f%%\n", percentage);
|
||||
}
|
||||
|
||||
int main() {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user