2
0
mirror of https://github.com/munin-monitoring/contrib.git synced 2018-11-08 00:59:34 +01:00

Merge pull request #385 from slashsBin/master

Fix a Bug and Improved doc comments
This commit is contained in:
Steve Schnepp 2013-10-07 05:37:26 -07:00
commit 42aa1e1854
5 changed files with 31 additions and 26 deletions

View File

@ -9,11 +9,12 @@
*
* @example Example entry for configuration:
* [drupal*]
* env.db="drupal"
* env.user="mysql_user"
* env.pass="mysql_pass"
* env.host="localhost"
* env.port="3306"
* env.db drupal
* env.user mysql_user
* env.pass mysql_pass
* env.host localhost
* env.port 3306
* env.table_prefix drupal_
*
* @author Liran Tal <liran.tal@hp.com>
* @version 1.0 2013

View File

@ -9,11 +9,12 @@
*
* @example Example entry for configuration:
* [drupal*]
* env.db="drupal"
* env.user="mysql_user"
* env.pass="mysql_pass"
* env.host="localhost"
* env.port="3306"
* env.db drupal
* env.user mysql_user
* env.pass mysql_pass
* env.host localhost
* env.port 3306
* env.table_prefix drupal_
*
* @author Liran Tal <liran.tal@hp.com>
* @version 1.0 2013

View File

@ -9,11 +9,12 @@
*
* @example Example entry for configuration:
* [drupal*]
* env.db="drupal"
* env.user="mysql_user"
* env.pass="mysql_pass"
* env.host="localhost"
* env.port="3306"
* env.db drupal
* env.user mysql_user
* env.pass mysql_pass
* env.host localhost
* env.port 3306
* env.table_prefix drupal_
*
* @author Liran Tal <liran.tal@hp.com>
* @version 1.0 2013

View File

@ -9,11 +9,12 @@
*
* @example Example entry for configuration:
* [drupal*]
* env.db="drupal"
* env.user="mysql_user"
* env.pass="mysql_pass"
* env.host="localhost"
* env.port="3306"
* env.db drupal
* env.user mysql_user
* env.pass mysql_pass
* env.host localhost
* env.port 3306
* env.table_prefix drupal_
*
* @author Liran Tal <liran.tal@hp.com>
* @version 1.0 2013
@ -114,7 +115,7 @@ function get_online_registered_users(&$dbh = NULL, $active_interval = 900) {
$table_prefix = getenv('table_prefix');
$sql = "SELECT COUNT(DISTINCT(uid)) AS count FROM sessions WHERE uid != 0
$sql = "SELECT COUNT(DISTINCT(uid)) AS count FROM {$table_prefix}sessions WHERE uid != 0
AND timestamp >= (UNIX_TIMESTAMP(now()) - ?)";
$stmt = $dbh->prepare($sql);

View File

@ -9,11 +9,12 @@
*
* @example Example entry for configuration:
* [drupal*]
* env.db="drupal"
* env.user="mysql_user"
* env.pass="mysql_pass"
* env.host="localhost"
* env.port="3306"
* env.db drupal
* env.user mysql_user
* env.pass mysql_pass
* env.host localhost
* env.port 3306
* env.table_prefix drupal_
*
* @author Liran Tal <liran.tal@hp.com>
* @version 1.0 2013