Project

General

Profile

« Previous | Next » 

Revision 9e378421

Added by Jim Pingle almost 12 years ago

Fix CP stats generation for concurrent users. Fixes #3225

View differences:

etc/inc/rrd.inc
800 800
				/* the Captive Portal stats gathering function. */
801 801
				$rrdupdatesh .= "\n";
802 802
				$rrdupdatesh .= "# polling Captive Portal for number of concurrent users\n";
803
				$rrdupdatesh .= "CP=`$php -q $captiveportal_gather '$cpkey' $concurrent`\n";
803
				$rrdupdatesh .= "CP=`${php} -q ${captiveportal_gather} '${cpkey}' 'concurrent'`\n";
804 804
				$rrdupdatesh .= "$rrdtool update $concurrent_filename \${CP}\n";
805 805

  
806 806
				$loggedin_filename = $rrddbpath . $ifname . '-' . $cpkey . $captiveportalloggedin;
......
836 836
				/* the Captive Portal stats gathering function. */
837 837
				$rrdupdatesh .= "\n";
838 838
				$rrdupdatesh .= "# polling Captive Portal for number of logged in users\n";
839
				$rrdupdatesh .= "CP=`$php -q $captiveportal_gather $cpkey loggedin`\n";
839
				$rrdupdatesh .= "CP=`${php} -q ${captiveportal_gather} '${cpkey}' 'loggedin'`\n";
840 840
				$rrdupdatesh .= "$rrdtool update $loggedin_filename \${CP}\n";
841 841

  
842 842
			}

Also available in: Unified diff