diff options
Diffstat (limited to 'gnuradio-runtime/lib/logger.cc')
-rw-r--r-- | gnuradio-runtime/lib/logger.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gnuradio-runtime/lib/logger.cc b/gnuradio-runtime/lib/logger.cc index 4dbab39aa0..c344f050be 100644 --- a/gnuradio-runtime/lib/logger.cc +++ b/gnuradio-runtime/lib/logger.cc @@ -56,11 +56,10 @@ unsigned int logger_config::get_watch_period() // Method to watch config file for changes void logger_config::watch_file(std::string filename, unsigned int watch_period) { - std::time_t last_write(boost::filesystem::last_write_time(filename)); - std::time_t current_time(0); + auto last_write = std::filesystem::last_write_time(filename); while (true) { try { - current_time = boost::filesystem::last_write_time(filename); + auto current_time = std::filesystem::last_write_time(filename); if (current_time > last_write) { // std::cout<<"GNURadio Reloading logger // configuration:"<<filename<<std::endl; |