From c56bea9d5fcbf239a63992eb9a141b43cb780184 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Fri, 9 Sep 2022 02:01:47 +0100 Subject: Make internal penalty be specified in millisecs instead of seconds. This removes the need to multiply it later. --- include/ctables.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/ctables.h b/include/ctables.h index bfbf45912..e95a68d39 100644 --- a/include/ctables.h +++ b/include/ctables.h @@ -242,8 +242,8 @@ public: /** Whether the command will not be forwarded by the linking module even if it comes via ENCAP. */ bool force_manual_route = false; - /** The number of seconds worth of penalty that executing this command gives. */ - unsigned int Penalty = 1; + /** The number of milliseconds worth of penalty that executing this command gives. */ + unsigned int penalty = 1000; /** The number of times this command has been executed. */ unsigned long use_count = 0; -- cgit v1.3.1-10-gc9f91