mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-10 05:09:22 +00:00
Correct read_stack function
This commit is contained in:
4
.github/workflows/stack_size.yml
vendored
4
.github/workflows/stack_size.yml
vendored
@@ -60,7 +60,9 @@ jobs:
|
|||||||
done
|
done
|
||||||
|
|
||||||
read_stack() {
|
read_stack() {
|
||||||
printf "%i" $((readelf $1 -l | grep STACK -A1 | tail -n1 | sed -E s/^[[:space:]]*//g | cut -f2 -d' '))
|
STACK_INFO=$(readelf "$1" -l | grep STACK -A1)
|
||||||
|
MEMSZ=$(echo $STACK_INFO | tail -n1 | sed -E s/^[[:space:]]*//g | cut -f2 -d' ')
|
||||||
|
printf "%i" $((MEMSZ))
|
||||||
}
|
}
|
||||||
INITIAL_STACK=$(read_stack monerod)
|
INITIAL_STACK=$(read_stack monerod)
|
||||||
if [ "$INITIAL_STACK" -ne "0" ]; then
|
if [ "$INITIAL_STACK" -ne "0" ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user