mirror of
https://github.com/pstadler/metrics.sh.git
synced 2025-02-28 13:59:12 -05:00
fix readme
This commit is contained in:
parent
ff9ed8ac10
commit
72c2be5554
@ -162,9 +162,9 @@ defaults () {
|
|||||||
# if needed. Returning 1 will disable this metric and report a warning.
|
# if needed. Returning 1 will disable this metric and report a warning.
|
||||||
start () {
|
start () {
|
||||||
if [ $DIR_SIZE_IN_MB = false ]; then
|
if [ $DIR_SIZE_IN_MB = false ]; then
|
||||||
DU_ARGS="-s -m $DIR_SIZE_PATH"
|
|
||||||
else
|
|
||||||
DU_ARGS="-s -k $DIR_SIZE_PATH"
|
DU_ARGS="-s -k $DIR_SIZE_PATH"
|
||||||
|
else
|
||||||
|
DU_ARGS="-s -m $DIR_SIZE_PATH"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -116,7 +116,7 @@ main_collect () {
|
|||||||
if is_function __m_${metric_alias}_start; then
|
if is_function __m_${metric_alias}_start; then
|
||||||
__m_${metric_alias}_start
|
__m_${metric_alias}_start
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
echo "Warning: metric '${metric_alias}' is disabled after failing to start"
|
echo "Warning: metric '${metric_alias}' is disabled after it failed to start"
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user