Cleaned up Useless session
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user