ctdb-scripts: Fix incorrect variable reference
authorMartin Schwenke <martin@meltin.net>
Wed, 29 Jun 2016 07:47:12 +0000 (17:47 +1000)
committerStefan Metzmacher <metze@samba.org>
Mon, 24 Oct 2016 08:56:13 +0000 (10:56 +0200)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=12362

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
(cherry picked from commit eabeecb45322747d7daeb2a79ac213f17eb049da)

ctdb/config/events.d/05.system

index bfa8e7b4c4e7f97ddf272fbc61e3a0adcfb181f4..603f94199b8e0643902e3560d542eca3818c8f94 100755 (executable)
@@ -47,7 +47,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"