aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Joseph Banks <[email protected]>2020-04-12 01:48:58 +0100
committerGravatar Joseph Banks <[email protected]>2020-04-12 01:48:58 +0100
commit540700694c7918058bf66af23a6351438423c155 (patch)
tree94efba7546c0a3a1bc4d37219b6ea509aee13ff5
parentUse underscore for metric names instead of dash (diff)
timer -> timing for statsd
-rw-r--r--bot/cogs/defcon.py2
-rw-r--r--bot/cogs/help_channels.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/bot/cogs/defcon.py b/bot/cogs/defcon.py
index 7043c7cbb..56fca002a 100644
--- a/bot/cogs/defcon.py
+++ b/bot/cogs/defcon.py
@@ -135,7 +135,7 @@ class Defcon(Cog):
delta = datetime.now() - enabled
- self.bot.stats.timer("defcon.enabled", delta)
+ self.bot.stats.timing("defcon.enabled", delta)
except Exception:
pass
diff --git a/bot/cogs/help_channels.py b/bot/cogs/help_channels.py
index d260a6a33..12bc4e279 100644
--- a/bot/cogs/help_channels.py
+++ b/bot/cogs/help_channels.py
@@ -469,7 +469,7 @@ class HelpChannels(Scheduler, commands.Cog):
if channel.id in self.claim_times:
claimed = self.claim_times[channel.id]
in_use_time = datetime.now() - claimed
- self.bot.stats.timer("help.in_use_time", in_use_time)
+ self.bot.stats.timing("help.in_use_time", in_use_time)
log.trace(f"Position of #{channel} ({channel.id}) is actually {channel.position}.")