From edf46429339c3b2920787722e4a9d7e87cd5c33c Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Mon, 25 Mar 2019 18:17:54 +0100 Subject: [PATCH] Migrate munin command --- lib/Travelynx/Command/munin.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Travelynx/Command/munin.pm b/lib/Travelynx/Command/munin.pm index 23ed747..67f7695 100644 --- a/lib/Travelynx/Command/munin.pm +++ b/lib/Travelynx/Command/munin.pm @@ -26,7 +26,7 @@ sub run { my $checkin_window_query = $dbh->prepare( - qq{select count(*) from user_actions where action_id = 1 and action_time > ?;} + qq{select count(*) from user_actions where action_id = 1 and action_time > to_timestamp(?);} ); query_to_munin( 'reg_user_count',