Team:USTC-Software/server.php
From 2014.igem.org
(Difference between revisions)
Line 142: | Line 142: | ||
} | } | ||
for(s in status){ | for(s in status){ | ||
- | if(status[s].status=="up" | + | if(status[s].status=="up") |
- | img = '<img src="img/green.png" style="width:20px;padding: 0;margin-right:0.5em ">'; | + | { |
- | + | if (status[s].load < 8) | |
- | + | img = '<img src="img/green.png" style="width:20px;padding: 0;margin-right:0.5em ">'; | |
- | + | else | |
img = '<img src="img/yellow.png" style="width:20px;padding: 0;margin-right:0.5em">'; | img = '<img src="img/yellow.png" style="width:20px;padding: 0;margin-right:0.5em">'; | ||
- | } | + | }else { |
- | + | ||
img = '<img src="img/red.png" style="width:20px;padding: 0;margin-right:0.5em">'; | img = '<img src="img/red.png" style="width:20px;padding: 0;margin-right:0.5em">'; | ||
} | } |
Revision as of 02:43, 18 October 2014