ctdb-scripts: Fix incorrect variable reference
authorMartin Schwenke <martin@meltin.net>
Wed, 29 Jun 2016 07:47:12 +0000 (17:47 +1000)
committerAmitay Isaacs <amitay@samba.org>
Wed, 6 Jul 2016 02:28:09 +0000 (04:28 +0200)
Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
ctdb/config/events.d/05.system

index 13f8837a17cebe8a44bf67def54f819d3fe05964..2dbfca52ba7a7472105c201b0c36bc53fbbe17fe 100755 (executable)
@@ -48,7 +48,7 @@ check_thresholds ()
         fi
     fi
 
-    if validate_percentage "$_warn_threshold" "$_what" ; then
+    if validate_percentage "$_warn_threshold" "$_thing" ; then
         if [ "$_usage" -ge "$_warn_threshold" ] ; then
            if [ -r "$_cache" ] ; then
                read _prev <"$_cache"