summaryrefslogtreecommitdiffhomepage
path: root/util/sysresources/memory.go
blob: 7363155cdb2ae019475876aba9fb34a1773e5f66 (plain)
1
2
3
4
5
6
7
8
9
10
// Copyright (c) Tailscale Inc & AUTHORS
// SPDX-License-Identifier: BSD-3-Clause

package sysresources

// TotalMemory returns the total accessible system memory, in bytes. If the
// value cannot be determined, then 0 will be returned.
func TotalMemory() uint64 {
	return totalMemoryImpl()
}