| 1328 |
|
static uintmax_t last_used = 0; |
| 1329 |
|
|
| 1330 |
|
/* Check the user is actually allowed to do /stats, and isn't flooding */ |
| 1331 |
< |
if ((last_used + ConfigGeneral.pace_wait) > CurrentTime) |
| 1331 |
> |
if ((last_used + ConfigGeneral.pace_wait) > event_base->time.sec_monotonic) |
| 1332 |
|
{ |
| 1333 |
|
sendto_one_numeric(source_p, &me, RPL_LOAD2HI, "STATS"); |
| 1334 |
|
return 0; |
| 1335 |
|
} |
| 1336 |
|
|
| 1337 |
< |
last_used = CurrentTime; |
| 1337 |
> |
last_used = event_base->time.sec_monotonic; |
| 1338 |
|
|
| 1339 |
|
/* Is the stats meant for us? */ |
| 1340 |
|
if (ConfigServerHide.disable_remote_commands == 0) |