diff --git a/src/zm_monitor.h b/src/zm_monitor.h index 443cd1318..9ad5c05ab 100644 --- a/src/zm_monitor.h +++ b/src/zm_monitor.h @@ -544,7 +544,12 @@ public: } bool hasViewers() { if (shared_data && shared_data->valid) { - TimePoint now = std::chrono::steady_clock::now(); + SystemTimePoint now = std::chrono::system_clock::now(); + Debug(1, "Last viewed %" PRId64 " seconds ago", + static_cast(std::chrono::duration_cast(now.time_since_epoch()).count()) + - + shared_data->last_viewed_time + ); return ( ( static_cast(std::chrono::duration_cast(now.time_since_epoch()).count())