aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Johannes Christ <[email protected]>2024-07-08 20:22:23 +0200
committerGravatar Johannes Christ <[email protected]>2024-08-22 20:12:21 +0200
commit00dd6ba86933078e082634e346090b6e9b2336cd (patch)
tree925ef2be1e607cf35c0333c60ba6de8836a19e6b
parentUse same basename for script as on server (diff)
Remove now obsolete sed call
Chris has fixed this upstream in python-discord/metricity#157.
-rw-r--r--ansible/roles/rrdstats/templates/generate-rrdtool-stats.sh.j24
1 files changed, 1 insertions, 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 229418f..d2b9b82 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"