2016-08-26 14:18:35 -07:00
|
|
|
// +build !linux,!darwin
|
|
|
|
|
2018-10-28 15:49:45 -07:00
|
|
|
package server
|
2016-08-26 14:18:35 -07:00
|
|
|
|
|
|
|
import (
|
|
|
|
"bytes"
|
|
|
|
"fmt"
|
|
|
|
)
|
|
|
|
|
2018-11-05 10:58:01 -07:00
|
|
|
func (s *Server) writeInfoCPU(w *bytes.Buffer) {
|
2016-08-26 14:18:35 -07:00
|
|
|
fmt.Fprintf(w,
|
|
|
|
"used_cpu_sys:%.2f\r\n"+
|
|
|
|
"used_cpu_user:%.2f\r\n"+
|
|
|
|
"used_cpu_sys_children:%.2f\r\n"+
|
|
|
|
"used_cpu_user_children:%.2f\r\n",
|
|
|
|
0, 0, 0, 0,
|
|
|
|
)
|
|
|
|
}
|