diff --git a/stats.php b/stats.php
index 8808a0b..1dc589e 100644
--- a/stats.php
+++ b/stats.php
@@ -9,6 +9,11 @@ error_reporting(E_ALL);
if (in_array($file, array('.', '..'))) continue;
array_push($users, $file);
}
+
+ $stats = json_decode(file_get_contents('/opt/bots/stats/stats.json'), true);
+
+ $today_msg = $stats['today_msg'];
+ $all_msg = $stats['all_msg'];
?>
> Statystyki
@@ -16,11 +21,12 @@ error_reporting(E_ALL);
Statystyki z tego serwera tilde
- Liczba użytkowników: =count($users);?>
- - Liczba wiadomości na IRC: TODO
- - Liczba wiadomości na IRC dziś: TODO
+ - Liczba wiadomości na IRC: =$all_msg?>
+ - Liczba wiadomości na IRC dziś: =$today_msg?>
- Ostatni server load: =shell_exec("/usr/bin/top -n 1 | grep Load | cut -d' ' -f3,4,5");?>
- Wolny RAM: =shell_exec("/usr/bin/free -h | grep Mem | awk '{print \$NF}'");?>
+