mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-07 17:35:07 -05:00
keys: don't fudge authentication delay
Remove the magic constant compensating for copying, conversions, etc. It cannot possibly be accurate on all hardware. The delay is supposed to be a minimum delay.
This commit is contained in:
3
keys.c
3
keys.c
@@ -121,8 +121,7 @@ determine_hash_delay(uint32_t key_id)
|
|||||||
min_diff = diff;
|
min_diff = diff;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Add on a bit extra to allow for copying, conversions etc */
|
nsecs = 1.0e9 * min_diff;
|
||||||
nsecs = 1.0625e9 * min_diff;
|
|
||||||
|
|
||||||
DEBUG_LOG("authentication delay for key %"PRIu32": %d nsecs", key_id, nsecs);
|
DEBUG_LOG("authentication delay for key %"PRIu32": %d nsecs", key_id, nsecs);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user