diff --git a/ci/pkg/usr.local.lib.tiny-app/ext/cpu b/ci/pkg/usr.local.lib.tiny-app/ext/cpu deleted file mode 100755 index cc7442b..0000000 --- a/ci/pkg/usr.local.lib.tiny-app/ext/cpu +++ /dev/null @@ -1,9 +0,0 @@ -#!/usr/bin/env bash -[ -f ../bash.config ] && . ../bash.config || { [ -f /usr/local/bin/bash.config ] && . /usr/local/bin/bash.config || :; } -is_darwin() { [[ $OSTYPE == *darwin* ]]; } -is_darwin && { - ps -A -o %cpu | awk '{s+=$1} END {print s "%"}' -} || { - top -b -n2 -p 1 | fgrep "Cpu(s)" | tail -1 | awk -F'id,' -v prefix="$prefix" '{ split($1, vs, ","); v=vs[length(vs)]; sub("%", "", v); printf "%s%.1f%%\n", prefix, 100 - v }' -} -exit 0 diff --git a/ci/pkg/usr.local.lib.tiny-app/ext/cpu1/cpu1 b/ci/pkg/usr.local.lib.tiny-app/ext/cpu1/cpu1 deleted file mode 100755 index e60a90b..0000000 --- a/ci/pkg/usr.local.lib.tiny-app/ext/cpu1/cpu1 +++ /dev/null @@ -1,3 +0,0 @@ -#!/usr/bin/env bash -echo "cpu test" -# echo "test error" 1>&2 && false \ No newline at end of file diff --git a/ci/pkg/usr.local.lib.tiny-app/ext/disk b/ci/pkg/usr.local.lib.tiny-app/ext/disk deleted file mode 100755 index bf4e7f9..0000000 --- a/ci/pkg/usr.local.lib.tiny-app/ext/disk +++ /dev/null @@ -1,4 +0,0 @@ -#!/usr/bin/env bash -[ -f ../bash.config ] && . ../bash.config || { [ -f /usr/local/bin/bash.config ] && . /usr/local/bin/bash.config || :; } -df -hal -: \ No newline at end of file diff --git a/ci/pkg/usr.local.lib.tiny-app/ext/mem/mem b/ci/pkg/usr.local.lib.tiny-app/ext/mem/mem deleted file mode 100755 index e60a90b..0000000 --- a/ci/pkg/usr.local.lib.tiny-app/ext/mem/mem +++ /dev/null @@ -1,3 +0,0 @@ -#!/usr/bin/env bash -echo "cpu test" -# echo "test error" 1>&2 && false \ No newline at end of file diff --git a/ci/pkg/usr.local.lib.tiny-app/ext/memory b/ci/pkg/usr.local.lib.tiny-app/ext/memory deleted file mode 100755 index 369a2d4..0000000 --- a/ci/pkg/usr.local.lib.tiny-app/ext/memory +++ /dev/null @@ -1,9 +0,0 @@ -#!/usr/bin/env bash -[ -f ../bash.config ] && . ../bash.config || { [ -f /usr/local/bin/bash.config ] && . /usr/local/bin/bash.config || :; } -is_darwin() { [[ $OSTYPE == *darwin* ]]; } -is_darwin && { - vm_stat | perl -ne '/page size of (\d+)/ and $size=$1; /Pages\s+([^:]+)[^\d]+(\d+)/ and printf("%-16s % 16.2f Mi\n", "$1:", $2 * $size / 1048576);' -} || { - free -} -exit 0