mirror of
https://github.com/zeek/zeek.git
synced 2025-10-10 02:28:21 +00:00
Merge branch 'fastpath' of ssh://git.bro-ids.org/bro into fastpath
This commit is contained in:
commit
450b49d14d
1 changed files with 2 additions and 2 deletions
|
@ -1112,9 +1112,9 @@ double calc_next_rotate(double current, double interval, double base)
|
|||
time_t teatime = time_t(current);
|
||||
|
||||
struct tm t;
|
||||
t = *localtime_r(&teatime, &t);
|
||||
t = *gmtime_r(&teatime, &t);
|
||||
t.tm_hour = t.tm_min = t.tm_sec = 0;
|
||||
double startofday = mktime(&t);
|
||||
double startofday = timegm(&t);
|
||||
|
||||
if ( base < 0 )
|
||||
// No base time given. To get nice timestamps, we round
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue