ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/trunk/modules/m_stats.c
(Generate patch)

Comparing ircd-hybrid/trunk/modules/m_stats.c (file contents):
Revision 8902 by michael, Sun Apr 21 20:09:18 2019 UTC vs.
Revision 8903 by michael, Sun Apr 21 20:43:53 2019 UTC

# Line 1328 | Line 1328 | m_stats(struct Client *source_p, int par
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)

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)