From 8d350aa5f552b77a6c88cf10aafb643ec4218b21 Mon Sep 17 00:00:00 2001 From: jesopo Date: Sun, 11 Nov 2018 08:44:46 +0000 Subject: [PATCH] Show bytes read/written in server stats --- modules/stats.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/stats.py b/modules/stats.py index 4a015742..930164f6 100644 --- a/modules/stats.py +++ b/modules/stats.py @@ -56,7 +56,9 @@ class Module(ModuleManager.BaseModule): "alias": server.alias, "hostmask": "%s!%s@%s" % ( server.nickname, server.username, server.hostname), - "users": len(server.users) + "users": len(server.users), + "bytes-written": server.bytes_written, + "bytes-read": server.bytes_read } @utils.hook("api.get.servers")