Use ByteSize helper

This commit is contained in:
2021-03-25 02:27:11 +01:00
parent cd60d9ebc3
commit 01a8f837b7

View File

@@ -4,6 +4,7 @@
* file, You can obtain one at https://mozilla.org/MPL/2.0/. * file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/ */
#include "Math/ByteSize.hpp"
#include "Logger.hpp" #include "Logger.hpp"
#include <iostream> #include <iostream>
#include <filesystem> #include <filesystem>
@@ -18,7 +19,8 @@
namespace openVulkanoCpp namespace openVulkanoCpp
{ {
constexpr size_t MAX_LOG_FILE_SIZE = 1024 * 1024 * 512;
constexpr size_t MAX_LOG_FILE_SIZE = 512_MiB;
constexpr size_t MAX_LOG_FILE_COUNT = 3; constexpr size_t MAX_LOG_FILE_COUNT = 3;
std::vector<spdlog::sink_ptr> Logger::SINKS; std::vector<spdlog::sink_ptr> Logger::SINKS;