mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-26 00:41:08 +00:00
parent
c2aacfa9c4
commit
1edde7c1bc
@ -272,7 +272,7 @@ struct Fetchurl::Main
|
|||||||
.timer = _timer,
|
.timer = _timer,
|
||||||
.last_ms = _timer.curr_time().trunc_to_plain_ms(),
|
.last_ms = _timer.curr_time().trunc_to_plain_ms(),
|
||||||
.max_timeout = _progress_timeout,
|
.max_timeout = _progress_timeout,
|
||||||
.curr_timeout = Genode::Milliseconds { .value = 0 },
|
.curr_timeout = Genode::Milliseconds { 0 },
|
||||||
.fetch = _fetch,
|
.fetch = _fetch,
|
||||||
};
|
};
|
||||||
curl_easy_setopt(_curl, CURLOPT_PROGRESSDATA, &ud);
|
curl_easy_setopt(_curl, CURLOPT_PROGRESSDATA, &ud);
|
||||||
@ -362,7 +362,7 @@ static int progress_callback(void *userdata,
|
|||||||
Fetch &fetch = ud.fetch;
|
Fetch &fetch = ud.fetch;
|
||||||
|
|
||||||
Milliseconds curr { timer.curr_time().trunc_to_plain_ms() };
|
Milliseconds curr { timer.curr_time().trunc_to_plain_ms() };
|
||||||
Milliseconds diff { .value = curr.value - ud.last_ms.value };
|
Milliseconds diff { curr.value - ud.last_ms.value };
|
||||||
ud.last_ms = curr;
|
ud.last_ms = curr;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user