Fix windows build

This commit is contained in:
gabime 2019-09-15 18:44:45 +03:00
parent b55d95d365
commit 5d46f3fcab
2 changed files with 3 additions and 3 deletions

View File

@ -45,7 +45,7 @@ class daily_file_sink final : public base_sink<Mutex>
{ {
public: public:
// create daily file sink which rotates on given time // create daily file sink which rotates on given time
daily_file_sink(filename_t base_filename, int rotation_hour, int rotation_minute, bool truncate = false, ushort max_files = 0) daily_file_sink(filename_t base_filename, int rotation_hour, int rotation_minute, bool truncate = false, uint16_t max_files = 0)
: base_filename_(std::move(base_filename)) : base_filename_(std::move(base_filename))
, rotation_h_(rotation_hour) , rotation_h_(rotation_hour)
, rotation_m_(rotation_minute) , rotation_m_(rotation_minute)
@ -157,7 +157,7 @@ private:
log_clock::time_point rotation_tp_; log_clock::time_point rotation_tp_;
details::file_helper file_helper_; details::file_helper file_helper_;
bool truncate_; bool truncate_;
ushort max_files_; uint16_t max_files_;
details::circular_q<filename_t> filenames_q_; details::circular_q<filename_t> filenames_q_;
}; };

View File

@ -110,7 +110,7 @@ static spdlog::details::log_msg create_msg(std::chrono::seconds offset)
return msg; return msg;
} }
static void test_rotate(int days_to_run, ushort max_days, ushort expected_n_files) static void test_rotate(int days_to_run, uint16_t max_days, uint16_t expected_n_files)
{ {
using spdlog::log_clock; using spdlog::log_clock;
using spdlog::details::log_msg; using spdlog::details::log_msg;