mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-04 23:35:07 -05:00
clientlog: return enum from CLG_LimitServiceRate()
Change CLG_LimitServiceRate() to return an enum in preparation for adding KoD RATE support.
This commit is contained in:
@@ -86,7 +86,7 @@ test_unit(void)
|
||||
ts.tv_sec += 1;
|
||||
index = CLG_LogServiceAccess(s, &ip, &ts);
|
||||
TEST_CHECK(index >= 0);
|
||||
if (!CLG_LimitServiceRate(s, index))
|
||||
if (CLG_LimitServiceRate(s, index) == CLG_PASS)
|
||||
j++;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user