Change stream timing GC timer to CLOCK_REALTIME
This commit is contained in:
parent
0afc150264
commit
d65fea00d5
@ -179,11 +179,13 @@ int StreamTiming::deleteStaleRecords()
|
|||||||
{
|
{
|
||||||
// FIXME: yield after a certain count of records or time?
|
// FIXME: yield after a certain count of records or time?
|
||||||
|
|
||||||
// FIXME: Can we compare 'now' below with libpcap provided timestamp?
|
// XXX: We assume the Tx packet timestamps are based on CLOCK_REALTIME
|
||||||
// Are their sources same or synced?
|
// (or a similar and comparable source). Since garbage collection timer
|
||||||
|
// is not a short interval, it need not be the exact same source as long
|
||||||
|
// as the values are comparable
|
||||||
int count = 0;
|
int count = 0;
|
||||||
struct timespec now;
|
struct timespec now;
|
||||||
clock_gettime(CLOCK_MONOTONIC, &now);
|
clock_gettime(CLOCK_REALTIME, &now);
|
||||||
|
|
||||||
// XXX: processRecords() iterates and deletes all rx records irrespective
|
// XXX: processRecords() iterates and deletes all rx records irrespective
|
||||||
// of whether it found a matching tx record. So for garbage collection we
|
// of whether it found a matching tx record. So for garbage collection we
|
||||||
|
Loading…
Reference in New Issue
Block a user