Cleaned up Useless session

This commit is contained in:
emeric
2024-04-03 00:01:19 +02:00
parent 50ecfb1378
commit 0acef3bfd4
3 changed files with 23 additions and 33 deletions
+19 -23
View File
@@ -19,32 +19,28 @@
#include "services/scanner/ScannerStats.hpp"
namespace lms::scanner {
ScanError::ScanError(const std::filesystem::path& _file, ScanErrorType _error, const std::string& _systemError)
: file {_file},
error {_error},
systemError {_systemError}
namespace lms::scanner
{
}
ScanError::ScanError(const std::filesystem::path& _file, ScanErrorType _error, const std::string& _systemError)
: file{ _file },
error{ _error },
systemError{ _systemError }
{
}
std::size_t
ScanStats::nbFiles() const
{
return skips + additions + updates;
}
std::size_t ScanStats::nbFiles() const
{
return skips + additions + updates;
}
std::size_t
ScanStats::nbChanges() const
{
return additions + deletions + updates;
}
unsigned
ScanStepStats::progress() const
{
return (processedElems / static_cast<float>(totalElems ? totalElems : 1)) * 100;
}
std::size_t ScanStats::nbChanges() const
{
return additions + deletions + updates;
}
unsigned ScanStepStats::progress() const
{
return (processedElems / static_cast<float>(totalElems ? totalElems : 1)) * 100;
}
} // namespace lms::scanner