Skip to content

Commit e9cceba

Browse files
committed
Fix KB/MB bug, use Telemetry
Issue #260.
1 parent 61a995c commit e9cceba

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/Whateverable.pm6

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,8 +157,9 @@ multi method irc-to-me(Message $msg where .text ~~ /:i^ help ‘?’? $/) {
157157
}
158158
multi method irc-to-me(Message $msg where .text ~~ /:i^ uptime $/) {
159159
use nqp;
160+
use Telemetry;
160161
(denominate now - INIT now) ~ ,
161-
~ nqp::atpos_i(nqp::getrusage(), nqp::const::RUSAGE_MAXRSS).fmt(%.2f)/1000 ~ KB maxrss.
162+
~ T<max-rss>.fmt(%.2f) ÷ 1000 ~ MB maxrss.
162163
~ (with nqp::getcomp("perl6") {
163164
This is {.implementation} version {.config<version>}
164165
~ built on {.backend.version_string}

0 commit comments

Comments
 (0)