修改命名

This commit is contained in:
unknown
2020-05-01 11:41:16 +08:00
parent 3f1ce8466e
commit 6487eaddbf
8 changed files with 123 additions and 148 deletions

View File

@@ -30,7 +30,7 @@ type ServerSummary struct {
Usage float64
}
NetWork []NetWorkInfo
Rooms []*RoomInfo
Streams []*StreamInfo
lastNetWork []NetWorkInfo
ref int
control chan bool
@@ -144,10 +144,5 @@ func (s *ServerSummary) collect() {
//fmt.Printf(" HD : %v GB Free: %v GB Usage:%f%%\n", d.Total/1024/1024/1024, d.Free/1024/1024/1024, d.UsedPercent)
//fmt.Printf(" OS : %v(%v) %v \n", n.Platform, n.PlatformFamily, n.PlatformVersion)
//fmt.Printf(" Hostname : %v \n", n.Hostname)
s.Rooms = nil
AllRoom.Range(func(key interface{}, v interface{}) bool {
s.Rooms = append(s.Rooms, &v.(*Room).RoomInfo)
return true
})
return
}