Removed file causing lint issues
This commit is contained in:
parent
78325543f4
commit
a73a3e6bb0
1 changed files with 0 additions and 12 deletions
12
test.sh
12
test.sh
|
@ -1,12 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
set -e
|
|
||||||
CGROUP_CPU=/sys/fs/cgroup/cpu/cpu.shares
|
|
||||||
if [ -f "$CGROUP_CPU" ]; then
|
|
||||||
SHARES=$(cat $CGROUP_CPU)
|
|
||||||
CPUS=$(($SHARES / 1024))
|
|
||||||
echo "$SHARES detected in the cgroup, rounds down to $CPUS cpus"
|
|
||||||
else
|
|
||||||
echo "No CGroup shares detected, will use default value of auto"
|
|
||||||
CPUS="auto"
|
|
||||||
fi
|
|
||||||
|
|
Loading…
Reference in a new issue