Changeset 589

Show
Ignore:
Timestamp:
12/19/10 15:31:56 (17 months ago)
Author:
JulioCP
Message:

nightwing-wa: corrected display the number of authenticated users.

Files:
1 modified

Legend:

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

    r587 r589  
    3535<h2>Client Information</h2> 
    3636<ul> 
    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> 
     37<li><b>Currently authenticated Clients in Public AP:</b> $( a=`ndsctl clients | grep -c "state=Authenticated"`; if [ $a -gt 0 ]; then echo $a; else echo "0"; fi )</li> 
    3838<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>