aboutsummaryrefslogtreecommitdiffstats
path: root/ftp/axel/files/patch-src_axel.c
blob: bbf0d24a449395a9209eaae0d027b01800010113 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- src/axel.c.orig	2022-11-25 02:14:41 UTC
+++ src/axel.c
@@ -151,7 +151,7 @@ axel_new(conf_t *conf, int count, const search_t *res)
 			axel->conf->buffer_size = axel->conf->max_speed;
 		}
 		uint64_t delay =
-			UINT64_C(1073741824) * axel->conf->buffer_size *
+			((uint64_t)1073741824) * axel->conf->buffer_size *
 			axel->conf->num_connections / axel->conf->max_speed;
 
 		axel->delay_time.tv_sec  = delay / 1073741824;