diff --git a/src/detection/memory/memory.c b/src/detection/memory/memory.c index 14b86cc39..f777554c3 100644 --- a/src/detection/memory/memory.c +++ b/src/detection/memory/memory.c @@ -5,7 +5,7 @@ void ffDetectMemoryImpl(FFMemoryResult* memory); static void calculatePercentage(FFMemoryStorage* storage) { - if(storage->error.length == 0) + if(storage->error.length != 0) return; if(storage->bytesTotal == 0)