summaryrefslogtreecommitdiffhomepage
path: root/util/sysresources/memory.go
blob: 3c6b9ae852e4761939eb98263b1f8bd6158833b0 (plain)
1
2
3
4
5
6
7
8
9
10
// Copyright (c) Tailscale Inc & contributors
// 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()
}