From 45f13b10345a744313639033120d51e865172ed1 Mon Sep 17 00:00:00 2001 From: Johannes Christ Date: Mon, 8 Jul 2024 20:22:23 +0200 Subject: [PATCH] Remove now obsolete sed call Chris has fixed this upstream in python-discord/metricity#157. --- ansible/roles/rrdstats/templates/generate-rrdtool-stats.sh.j2 | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ansible/roles/rrdstats/templates/generate-rrdtool-stats.sh.j2 b/ansible/roles/rrdstats/templates/generate-rrdtool-stats.sh.j2 index 229418ff..d2b9b823 100644 --- a/ansible/roles/rrdstats/templates/generate-rrdtool-stats.sh.j2 +++ b/ansible/roles/rrdstats/templates/generate-rrdtool-stats.sh.j2 @@ -134,11 +134,9 @@ psql --tuples-only --csv "$DB_DSN" -c " ' | xargs -t rrdtool update --template "archived:unarchived" "$THREADS_RRD" -- # Users -# The sed call works around python-discord/metricity#157 by explicitly telling rrdtool -# that the current amount of users is unknown. It may be removed once this is fixed upstream. ( echo -n 'N:' && psql --tuples-only --csv "$DB_DSN" -c 'SELECT COUNT(*) FROM users WHERE in_guild = true' -) | sed -e 's/^N:0$/N:U/' | xargs -t rrdtool update "$USERS_RRD" -- +) | xargs -t rrdtool update "$USERS_RRD" -- echo -n "$now" > "$LAST_RUN_FILE"