Commit aef3ed93 authored by Håvard Moås's avatar Håvard Moås
Browse files

Update IPFIXLIB to fix minor compiler error, havard.mork@gmail.com

git-svn-id: file:///home/svn/mapi/branches/haavardm-mapi@68 8d5bb341-7cf1-0310-8cf6-ba355fef3186
parent 82340350
......@@ -129,7 +129,7 @@ exportBucket(np_ctxt_t *npctxt, HashBucket *myBucket)
void queueBucketToExport(np_ctxt_t *npctxt, HashBucket *myBucket) {
pthread_mutex_lock(&exportMutex);
addToList(myBucket, &npctxt->exportQueue);
myBucket->time_exported = time();
myBucket->time_exported = time(NULL);
npctxt->exportBucketsLen++;
pthread_mutex_unlock(&exportMutex);
//signalCondvar(&npctxt->exportQueueCondvar);
......@@ -163,7 +163,7 @@ dequeueBucketToExport(void* ctxt)
pthread_mutex_unlock(&exportMutex);
/* Export bucket */
timediff = time()-myBucket->time_exported;
timediff = time(NULL)-myBucket->time_exported;
if(timediff <= npctxt->maxExportQueueLatency) {
exportBucket(npctxt, myBucket);
} else {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment