Skip to content

Commit 10f1959

Browse files
committed
I just learnt how to count kilobytes
1 parent 1d8546d commit 10f1959

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ Here is an async HTTP server built with just the event loop.
4545
});
4646

4747
$loop->addPeriodicTimer(5, function () {
48-
$memory = memory_get_usage() / (1024*1024);
48+
$memory = memory_get_usage() / 1024;
4949
$formatted = number_format($memory, 3).'K';
5050
echo "Current memory usage: {$formatted}\n";
5151
});

0 commit comments

Comments
 (0)