From 7587cf42776bf9712f989b83ec7eff42c3d03901 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sat, 9 Jul 2022 16:16:08 +0200 Subject: munin: add push sync stats --- lib/Travelynx/Command/munin.pm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'lib/Travelynx') diff --git a/lib/Travelynx/Command/munin.pm b/lib/Travelynx/Command/munin.pm index a2191f8..a285782 100644 --- a/lib/Travelynx/Command/munin.pm +++ b/lib/Travelynx/Command/munin.pm @@ -71,7 +71,11 @@ sub run { query_to_munin( 'polylines', $db->select( 'polylines', 'count(*) as count' )->hash->{count} ); query_to_munin( 'traewelling_pull', - $db->select( 'traewelling', 'count(*) as count', { pull_sync => 1 })->hash->{count} ); + $db->select( 'traewelling', 'count(*) as count', { pull_sync => 1 } ) + ->hash->{count} ); + query_to_munin( 'traewelling_push', + $db->select( 'traewelling', 'count(*) as count', { push_sync => 1 } ) + ->hash->{count} ); query_to_munin( 'polyline_ratio', $db->query( -- cgit v1.2.3