diff options
| author | 2022-09-09 02:01:47 +0100 | |
|---|---|---|
| committer | 2022-09-09 02:16:13 +0100 | |
| commit | c56bea9d5fcbf239a63992eb9a141b43cb780184 (patch) | |
| tree | 230c371b4f0dbbe98ddd774d219daf8df5b0d4c5 /include | |
| parent | Default allow_empty_last_param to false. (diff) | |
Make internal penalty be specified in millisecs instead of seconds.
This removes the need to multiply it later.
Diffstat (limited to 'include')
| -rw-r--r-- | include/ctables.h | 4 |
1 files changed, 2 insertions, 2 deletions
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; |
