Commit 5d46f3fc authored by gabime's avatar gabime

Fix windows build

parent b55d95d3
......@@ -45,7 +45,7 @@ class daily_file_sink final : public base_sink<Mutex>
{
public:
// 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))
, rotation_h_(rotation_hour)
, rotation_m_(rotation_minute)
......@@ -157,7 +157,7 @@ private:
log_clock::time_point rotation_tp_;
details::file_helper file_helper_;
bool truncate_;
ushort max_files_;
uint16_t max_files_;
details::circular_q<filename_t> filenames_q_;
};
......
......@@ -110,7 +110,7 @@ static spdlog::details::log_msg create_msg(std::chrono::seconds offset)
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::details::log_msg;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment