Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gabime/spdlog.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'include/spdlog/details/periodic_worker.h')
-rw-r--r--include/spdlog/details/periodic_worker.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/spdlog/details/periodic_worker.h b/include/spdlog/details/periodic_worker.h
index 919ba7ed..d7d69b28 100644
--- a/include/spdlog/details/periodic_worker.h
+++ b/include/spdlog/details/periodic_worker.h
@@ -21,7 +21,8 @@ class SPDLOG_API periodic_worker
{
public:
template<typename Rep, typename Period>
- periodic_worker(const std::function<void()> &callback_fun, std::chrono::duration<Rep, Period> interval) {
+ periodic_worker(const std::function<void()> &callback_fun, std::chrono::duration<Rep, Period> interval)
+ {
active_ = (interval > std::chrono::duration<Rep, Period>::zero());
if (!active_)
{