Megatest

Check-in [5b804d31a0]
Login
Overview
Comment:Added template for load based launcher
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 5b804d31a01f4d9365bbed56f0483a7c17d6f9c0
User & Date: mrwellan on 2012-03-20 18:24:23
Other Links: manifest | tags
Context
2012-03-20
23:28
Got nbfind working on ubuntu check-in: 4cf18277f3 user: matt tags: trunk
18:24
Added template for load based launcher check-in: 5b804d31a0 user: mrwellan tags: trunk
2012-03-19
20:04
Merged servermode to trunk check-in: 0e271e38b4 user: matt tags: trunk
Changes

Added utils/nbfind version [bb90861904].















1
2
3
4
5
6
7
8
9
10
11
12
13
14
+
+
+
+
+
+
+
+
+
+
+
+
+
+
#!/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