Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
44
const
GB = 1024 * 1024 * 1024
45
46
func
decimal(v string) float64 {
47
value, _ := strconv.ParseFloat(v, 64)
48
return
value
49
}
50
51
// 1.主机IP
52
func
GetLocalIP() (ip string) {
Callers
3
GetDiskInfo
Function · 0.85
GetCpuPercent
Function · 0.85
GetMemInfo
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected