mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-10 16:24:45 -07:00
store network traffic statistics in database
This commit is contained in:
parent
1455c093cc
commit
eb6520a737
4 changed files with 37 additions and 4 deletions
|
|
@ -119,9 +119,11 @@ CREATE TABLE IF NOT EXISTS `cockatrice_users` (
|
|||
CREATE TABLE `cockatrice_uptime` (
|
||||
`id_server` tinyint(3) NOT NULL,
|
||||
`timest` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
|
||||
`uptime` int(11) DEFAULT NULL,
|
||||
`users_count` int(11) DEFAULT NULL,
|
||||
`games_count` int(11) DEFAULT NULL,
|
||||
`uptime` int(11) NOT NULL,
|
||||
`users_count` int(11) NOT NULL,
|
||||
`games_count` int(11) NOT NULL,
|
||||
`rx_bytes` int(11) NOT NULL,
|
||||
`tx_bytes` int(11) NOT NULL,
|
||||
PRIMARY KEY (`timest`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue