mirror of
https://github.com/trafficlunar/api.git
synced 2026-06-27 22:24:08 +00:00
feat: keys, clicks, and totals in computer statistics
This commit is contained in:
parent
19bdd27de1
commit
8407a1258f
6 changed files with 85 additions and 10 deletions
|
|
@ -18,8 +18,10 @@ func StartComputerWorker() {
|
|||
if now.Second() == 0 {
|
||||
if !service.ComputerData.Online {
|
||||
service.AddComputerData(model.ComputerWebSocketMessage{
|
||||
Cpu: 0,
|
||||
Ram: 0,
|
||||
Cpu: 0,
|
||||
Ram: 0,
|
||||
Keys: 0,
|
||||
Clicks: 0,
|
||||
})
|
||||
} else {
|
||||
service.AddComputerData(QueuedClientMessage)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue