Skip to content
This repository has been archived by the owner on Nov 20, 2022. It is now read-only.

Commit

Permalink
Fix #65
Browse files Browse the repository at this point in the history
I don't have a dev env right now, so doing this inline. Hope it works.
  • Loading branch information
nikhilm committed May 19, 2016
1 parent 1f8ba40 commit 65a4361
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion code/progress/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@
uv_loop_t *loop;
uv_async_t async;

double percentage;

void fake_download(uv_work_t *req) {
int size = *((int*) req->data);
int downloaded = 0;
double percentage;
while (downloaded < size) {
percentage = downloaded*100.0/size;
async.data = (void*) &percentage;
Expand Down

0 comments on commit 65a4361

Please sign in to comment.