updated memory calculation and logo
This commit is contained in:
@@ -2,7 +2,14 @@
|
||||
|
||||
package system
|
||||
|
||||
import "fmt"
|
||||
|
||||
// GetInfo returns empty system info on non-Linux platforms.
|
||||
func GetInfo(_ string) SystemInfo {
|
||||
return SystemInfo{}
|
||||
}
|
||||
|
||||
// GetTotalMemoryMB is not available on non-Linux platforms.
|
||||
func GetTotalMemoryMB() (int, error) {
|
||||
return 0, fmt.Errorf("/proc/meminfo not available on this platform")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user