2
0
Fork 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: * @example Example entry for configuration:
* [drupal*] * [drupal*]
* env.db="drupal" * env.db drupal
* env.user="mysql_user" * env.user mysql_user
* env.pass="mysql_pass" * env.pass mysql_pass
* env.host="localhost" * env.host localhost
* env.port="3306" * env.port 3306
* env.table_prefix drupal_
* *
* @author Liran Tal <liran.tal@hp.com> * @author Liran Tal <liran.tal@hp.com>
* @version 1.0 2013 * @version 1.0 2013

View file

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

View file

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

View file

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

View file

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