Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
0dbadda6
Commit
0dbadda6
authored
Nov 24, 2015
by
k8s-merge-robot
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #17330 from derekwaynecarr/free_mem
Auto commit by PR queue bot
parents
8500a0fe
a043f3c8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
golang.sh
hack/lib/golang.sh
+2
-2
No files found.
hack/lib/golang.sh
View file @
0dbadda6
...
@@ -416,12 +416,12 @@ kube::golang::build_binaries_for_platform() {
...
@@ -416,12 +416,12 @@ kube::golang::build_binaries_for_platform() {
done
done
}
}
# Return approximate physical memory in gigabytes.
# Return approximate physical memory
available
in gigabytes.
kube::golang::get_physmem
()
{
kube::golang::get_physmem
()
{
local
mem
local
mem
# Linux, in kb
# Linux, in kb
if
mem
=
$(
grep
Mem
Total
/proc/meminfo |
awk
'{ print $2 }'
)
;
then
if
mem
=
$(
grep
Mem
Available
/proc/meminfo |
awk
'{ print $2 }'
)
;
then
echo
$((
${
mem
}
/
1048576
))
echo
$((
${
mem
}
/
1048576
))
return
return
fi
fi
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment