- Agent roles and coordination features - Chat API integration testing - New configuration and workspace management 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
20 lines
284 B
Go
20 lines
284 B
Go
// +build freebsd openbsd dragonfly netbsd
|
|
|
|
package memory
|
|
|
|
func sysTotalMemory() uint64 {
|
|
s, err := sysctlUint64("hw.physmem")
|
|
if err != nil {
|
|
return 0
|
|
}
|
|
return s
|
|
}
|
|
|
|
func sysFreeMemory() uint64 {
|
|
s, err := sysctlUint64("hw.usermem")
|
|
if err != nil {
|
|
return 0
|
|
}
|
|
return s
|
|
}
|