diff options
| author | Dan Goodliffe <dan@randomdan.homeip.net> | 2026-06-27 13:05:03 +0100 |
|---|---|---|
| committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2026-06-27 13:05:03 +0100 |
| commit | 22a85bd4e1f6005455b91bb3edff68d4019526a1 (patch) | |
| tree | 1b11874bfc8fa270cff32954157d2cdf7ca66fc5 /src/ingestor.hpp | |
| parent | 1a7c5329d07d9d961899aa7c85f9bd56fc06cb2d (diff) | |
| download | webstat-22a85bd4e1f6005455b91bb3edff68d4019526a1.tar.bz2 webstat-22a85bd4e1f6005455b91bb3edff68d4019526a1.tar.xz webstat-22a85bd4e1f6005455b91bb3edff68d4019526a1.zip | |
Increase size field to 64bit and fix scan types
2^31 not big enough for large file downloads, bumped to 64bit.
Replace woolly types with specific uintXX_t in scn call.
Diffstat (limited to 'src/ingestor.hpp')
| -rw-r--r-- | src/ingestor.hpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/ingestor.hpp b/src/ingestor.hpp index 8808ed8..ce4ac09 100644 --- a/src/ingestor.hpp +++ b/src/ingestor.hpp @@ -61,9 +61,10 @@ namespace WebStat { virtual ~Ingestor(); SPECIAL_MEMBERS_DELETE(Ingestor); - using ScanResult = decltype(scn::scan<std::string_view, std::string_view, uint64_t, std::string_view, - QuotedString, QueryString, std::string_view, unsigned short, unsigned int, unsigned int, CLFString, - CLFString, CLFString>(std::declval<std::string_view>(), "")); + using ScanResult + = decltype(scn::scan<std::string_view, std::string_view, uint64_t, std::string_view, QuotedString, + QueryString, std::string_view, uint16_t, uint64_t, uint32_t, CLFString, CLFString, CLFString>( + std::declval<std::string_view>(), "")); using ScanValues = std::remove_cvref_t<decltype(std::declval<WebStat::Ingestor::ScanResult>()->values())>; [[nodiscard]] static ScanResult scanLogLine(std::string_view); |
