Megatest

nbfind at [5b804d31a0]
Login

File utils/nbfind artifact bb90861904 part of check-in 5b804d31a0


#!/bin/bash -e

load=`uptime|awk '{print $10}'|cut -d, -f1`
numcpu=`cpucheck|tail -1|awk '{print $6}'`
lperc=`echo "100 * $load / $numcpu"|bc`

if [[ $lperc -lt 100 ]];then
  # echo "Load percent: $lperc < 100, using nbfake"
  nbfake $(*)
else
  # echo "Load percent: $lperc > 100, using NBLAUNCHER"
  $NBLAUNCHER $(*)
fi