代码整理
This commit is contained in:
@@ -11,9 +11,9 @@ import "sync/atomic"
|
||||
// commonly found in $SYS topics (and others).
|
||||
// based on https://github.com/mqtt/mqtt.org/wiki/SYS-Topics
|
||||
type Info struct {
|
||||
Version string `json:"version"` // the current version of the server
|
||||
Started int64 `json:"started"` // the time the server started in unix seconds
|
||||
Time int64 `json:"time"` // current time on the server
|
||||
Version string `json:"version"` // 服务器的当前版本
|
||||
Started int64 `json:"started"` // 服务器启动的时间-时间戳
|
||||
Time int64 `json:"time"` // 服务器上的当前时间
|
||||
Uptime int64 `json:"uptime"` // the number of seconds the server has been online
|
||||
BytesReceived int64 `json:"bytes_received"` // total number of bytes received since the broker started
|
||||
BytesSent int64 `json:"bytes_sent"` // total number of bytes sent since the broker started
|
||||
@@ -30,7 +30,7 @@ type Info struct {
|
||||
Subscriptions int64 `json:"subscriptions"` // total number of subscriptions active on the broker
|
||||
PacketsReceived int64 `json:"packets_received"` // the total number of publish messages received
|
||||
PacketsSent int64 `json:"packets_sent"` // total number of messages of any type sent since the broker started
|
||||
MemoryAlloc int64 `json:"memory_alloc"` // memory currently allocated
|
||||
MemoryAlloc int64 `json:"memory_alloc"` // 当前分配的内存
|
||||
Threads int64 `json:"threads"` // number of active goroutines, named as threads for platform ambiguity
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user