Skip to content

Commit

Permalink
Remove now obsolete sed call
Browse files Browse the repository at this point in the history
Chris has fixed this upstream in python-discord/metricity#157.
  • Loading branch information
jchristgit committed Jul 8, 2024
1 parent e02c7a4 commit 1240b57
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit 1240b57

Please sign in to comment.