Revert print_progress to use handle->data

This commit is contained in:
Bitshifter-9 2025-12-03 03:27:27 +05:30
parent e637d36d97
commit 1bb140818a

View File

@ -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() {