From ee01cb7017e3895419544a0385f90f8eb0498680 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Wed, 18 Mar 2026 23:30:21 +0000 Subject: Count and return the number of parked lines ingested --- src/ingestor.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/ingestor.cpp') diff --git a/src/ingestor.cpp b/src/ingestor.cpp index 692ddd2..def3ce1 100644 --- a/src/ingestor.cpp +++ b/src/ingestor.cpp @@ -247,14 +247,15 @@ namespace WebStat { unsigned int Ingestor::jobIngestParkedLines() { + unsigned int count = 0; for (auto pathIter = std::filesystem::directory_iterator {settings.fallbackDir}; pathIter != std::filesystem::directory_iterator {}; ++pathIter) { if (scn::scan(pathIter->path().filename().string(), "parked-{}.log")) { jobIngestParkedLine(pathIter); + count += 1; } } - // TODO return actual count - return 0; + return count; } void -- cgit v1.3