sigar/go_bindings/gotoc/avg.go
ilanuriel 9158290982 go code
to link with sigar c code
2016-01-04 12:23:11 +02:00

29 lines
250 B
Go

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
}