IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 31882


Ignore:
Timestamp:
Jul 14, 2011, 3:31:56 PM (15 years ago)
Author:
watersc1
Message:

Fixed typo in diskbalance.pro

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTasks/diskbalance.pro

    r31880 r31882  
    8585
    8686macro set.balance.target
    87   $BALANCE_TARGET = $1
     87 if ($0 != 2)
     88   echo "USAGE: set.balance.target (DESTINATION|SOURCE)"
     89   break
     90 end
     91 $BALANCE_TARGET = $1
    8892end
    8993
     
    100104$BALANCE_LIMIT       = 500
    101105$BALANCE_OFFSET      = 0
    102 $BALANCE_TARGET      = SOURCE
     106$BALANCE_TARGET      = "SOURCE"
    103107# Select Nebulous objects which should be shuffled
    104108task           balance.load
     
    164168
    165169  # locked list
    166 :  task.exit    default
     170  task.exit    default
    167171    showcommand failure
    168172  end
     
    205209    book getword balancePending $pageName destination_host -var DEST_HOST
    206210    # Fix this with multihost restriction when possible.
    207     if ("$target" == "DESTINATION")
     211    if ("$BALANCE_TARGET" == "DESTINATION")
    208212       set.host.for.balance $DEST_HOST
    209213    else
    210214       set.host.for.balance $SOURCE_HOST
    211215    end
    212    
     216    
    213217
    214218    stdout NULL
     
    229233
    230234  # default exit status
    231   task.exit default
     235  task.exit     default
    232236    process_exit balancePending $options:0 $JOB_STATUS
    233237  end
Note: See TracChangeset for help on using the changeset viewer.