Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-ports
Path: blob/main/ftp/axel/files/patch-src_axel.c
18157 views
1
--- src/axel.c.orig 2022-11-25 02:14:41 UTC
2
+++ src/axel.c
3
@@ -151,7 +151,7 @@ axel_new(conf_t *conf, int count, const search_t *res)
4
axel->conf->buffer_size = axel->conf->max_speed;
5
}
6
uint64_t delay =
7
- UINT64_C(1073741824) * axel->conf->buffer_size *
8
+ ((uint64_t)1073741824) * axel->conf->buffer_size *
9
axel->conf->num_connections / axel->conf->max_speed;
10
11
axel->delay_time.tv_sec = delay / 1073741824;
12
13