summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2026-03-18 23:30:21 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2026-03-18 23:30:21 +0000
commitee01cb7017e3895419544a0385f90f8eb0498680 (patch)
tree1718a47a1f5ce7bdb8c30499ef7425ccc75b4a48 /src
parent076679d9f2b761a9e4892e399f1a16f141d85986 (diff)
downloadwebstat-ee01cb7017e3895419544a0385f90f8eb0498680.tar.bz2
webstat-ee01cb7017e3895419544a0385f90f8eb0498680.tar.xz
webstat-ee01cb7017e3895419544a0385f90f8eb0498680.zip
Count and return the number of parked lines ingested
Diffstat (limited to 'src')
-rw-r--r--src/ingestor.cpp5
1 files changed, 3 insertions, 2 deletions
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<Crc32Value>(pathIter->path().filename().string(), "parked-{}.log")) {
jobIngestParkedLine(pathIter);
+ count += 1;
}
}
- // TODO return actual count
- return 0;
+ return count;
}
void