Skip to content

Commit 50ea00c

Browse files
committed
Fix #584. 16byte element ype in hash
1 parent 6b7b397 commit 50ea00c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/nfdump/nflowcache.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -788,7 +788,7 @@ static inline int New_HashKey(void *keymem, recordHandle_t *recordHandle, int sw
788788
case 16: {
789789
((uint64_t *)keymem)[0] = ((uint64_t *)inPtr)[0];
790790
((uint64_t *)keymem)[1] = ((uint64_t *)inPtr)[1];
791-
keymem += sizeof(uint64_t);
791+
keymem += (2 * sizeof(uint64_t));
792792
} break;
793793
default:
794794
memcpy((void *)keymem, inPtr, param->length);
@@ -1449,7 +1449,7 @@ void AddFlowCache(recordHandle_t *recordHandle) {
14491449
uint64_t aggrFlows = 1;
14501450
if (cntFlow) {
14511451
outPackets = cntFlow->outPackets;
1452-
outBytes = cntFlow->outPackets;
1452+
outBytes = cntFlow->outBytes;
14531453
aggrFlows = cntFlow->flows ? cntFlow->flows : 1;
14541454
}
14551455

0 commit comments

Comments
 (0)