From 55a8a84d8dc01df449a598c1f26fdf37b0a53159 Mon Sep 17 00:00:00 2001 From: Giacomo Tesio Date: Tue, 15 Aug 2017 00:54:15 +0200 Subject: [PATCH] kernel: fix potential overflow in updatecpu (CID 155825) --- sys/src/kern/port/proc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/src/kern/port/proc.c b/sys/src/kern/port/proc.c index 74afb10..30dbdb5 100644 --- a/sys/src/kern/port/proc.c +++ b/sys/src/kern/port/proc.c @@ -49,7 +49,7 @@ enum static int reprioritize(Proc*); static void updatecpu(Proc*); -static int schedgain = 30; /* units in seconds */ +static int64_t schedgain = 30; /* units in seconds */ static void rebalance(void); static uint32_t balancetime;