MCPcopy
hub / github.com/inbug-team/InScan / decimal

Function decimal

host_info/host_info.go:46–49  ·  view source on GitHub ↗
(v string)

Source from the content-addressed store, hash-verified

44const GB = 1024 * 1024 * 1024
45
46func decimal(v string) float64 {
47 value, _ := strconv.ParseFloat(v, 64)
48 return value
49}
50
51// 1.主机IP
52func GetLocalIP() (ip string) {

Callers 3

GetDiskInfoFunction · 0.85
GetCpuPercentFunction · 0.85
GetMemInfoFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected