예제 #1
0
파일: collector.go 프로젝트: cha87de/kvmtop
func Initialize() {
	if CPU_EACH {
		fmt.Println("PRINT EACH CPU")
	}

	cpustats = make(map[string]VmCpuSchedStat)
	models.RegisterCollector(CpuCollector{})
}
예제 #2
0
파일: collector.go 프로젝트: cha87de/kvmtop
func Initialize() {
	vms = make(map[string]VirtualMachineExtended)
	models.RegisterCollector(StaticCollector{})
}