From 9bea84918c09da1d7cda463776b0042fb1360620 Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Thu, 12 Jan 2012 12:12:58 +0100 Subject: [PATCH] Fix checksum offloading auto detection typo: it should be 1/5th instead of 1/10th. --- src/util-checksum.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/util-checksum.c b/src/util-checksum.c index 5184064e17..9315afd967 100644 --- a/src/util-checksum.c +++ b/src/util-checksum.c @@ -73,14 +73,14 @@ int ChecksumAutoModeCheck(uint32_t thread_count, if (thread_count == CHECKSUM_SAMPLE_COUNT) { if (iface_fail != 0) { if ((iface_count / iface_fail) < CHECKSUM_INVALID_RATIO) { - SCLogInfo("More than 1/10th of packets have an invalid " + SCLogInfo("More than 1/%dth of packets have an invalid " "checksum, assuming checksum offloading is used (%d/%d)", - iface_fail, iface_count); + CHECKSUM_INVALID_RATIO, iface_fail, iface_count); return 1; } else { - SCLogInfo("Less than 1/10th of packet have an invalid " + SCLogInfo("Less than 1/%dth of packets have an invalid " "checksum, assuming checksum offloading is NOT used (%d/%d)", - iface_fail, iface_count); + CHECKSUM_INVALID_RATIO, iface_fail, iface_count); } } else { SCLogInfo("No packets with invalid checksum, assuming checksum offloading is NOT used");