sigar/go_bindings/gotoc/avg.go

29 lines
250 B
Go
Raw Normal View History

2016-01-04 18:23:11 +08:00
package gotoc
import (
)
/*
#include "../../../../../Include/sigar.h"
*/
import "C"
func Avg()C.sigar_loadavg_t{
var sigar *C.sigar_t=GetSigarHandle()
var avg C.sigar_loadavg_t
C.sigar_loadavg_get(sigar, &avg)
return avg
}