2022-09-13 03:06:27 +03:00
|
|
|
//go:build !linux && !darwin
|
2016-08-27 00:18:35 +03:00
|
|
|
|
2018-10-29 01:49:45 +03:00
|
|
|
package server
|
2016-08-27 00:18:35 +03:00
|
|
|
|
|
|
|
import (
|
|
|
|
"bytes"
|
|
|
|
"fmt"
|
|
|
|
)
|
|
|
|
|
2018-11-05 20:58:01 +03:00
|
|
|
func (s *Server) writeInfoCPU(w *bytes.Buffer) {
|
2016-08-27 00:18:35 +03: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",
|
2019-10-29 04:39:27 +03:00
|
|
|
0.0, 0.0, 0.0, 0.0,
|
2016-08-27 00:18:35 +03:00
|
|
|
)
|
|
|
|
}
|