Megatest

Artifact [bb90861904]
Login

Artifact bb90861904568a6cc48459ff26dc9c53672a738b:


#!/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