Changeset 587 for branches

Show
Ignore:
Timestamp:
12/19/10 13:50:47 (17 months ago)
Author:
JulioCP
Message:

nightwing-wa: Corrected the info displayed in the Clients tab.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/nightwing-wa/nightwing/www/cgi-bin/clients.html

    r513 r587  
    3535<h2>Client Information</h2> 
    3636<ul> 
    37 <li><b>Currently authenticated Clients in Public AP:</b> $( a=`cat /tmp/data | grep "Current clients" | awk '{ print $3 }'`; if [ $a -gt 0 ]; then echo $a; else echo "0"; fi )</li> 
    38 <li><b>Clients currently connected to the Public AP:</b> $( a=`wlanconfig ath1 list | wc -l`; if [ $a -gt 0 ]; then echo $a; fi )</li> 
     37<li><b>Currently authenticated Clients in Public AP:</b> $( a=`ndsctl status | grep "Current clients" | awk '{ print $3 }'`; if [ $a -gt 0 ]; then echo $a; else echo "0"; fi )</li> 
     38<li><b>Clients currently connected to the Public AP:</b> $( a=`wlanconfig ath0 list | wc -l`; if [ $a -gt 0 ]; then echo `expr $a - 1`; else echo "0"; fi )</li> 
    3939</ul> 
    4040EOF