mirror of
https://github.com/Mibew/design.git
synced 2025-01-22 10:00:34 +03:00
Fix bug with by thread chat statistics
This commit is contained in:
parent
08617d41c6
commit
475d0e22ae
@ -66,8 +66,8 @@ function calculate_thread_statistics() {
|
|||||||
$db_results = $db->query(
|
$db_results = $db->query(
|
||||||
"SELECT (FLOOR(t.dtmcreated / (24*60*60)) * 24*60*60) AS date, " .
|
"SELECT (FLOOR(t.dtmcreated / (24*60*60)) * 24*60*60) AS date, " .
|
||||||
"COUNT(t.threadid) AS threads, " .
|
"COUNT(t.threadid) AS threads, " .
|
||||||
"tmp.operator_msgs AS operator_msgs, " .
|
"SUM(tmp.operator_msgs) AS operator_msgs, " .
|
||||||
"tmp.user_msgs AS user_msgs, " .
|
"SUM(tmp.user_msgs) AS user_msgs, " .
|
||||||
// Prevent negative values of avgchattime field.
|
// Prevent negative values of avgchattime field.
|
||||||
// If avgchattime < 0 it becomes to zero.
|
// If avgchattime < 0 it becomes to zero.
|
||||||
// For random value 'a' result of expression ((abs(a) + a) / 2)
|
// For random value 'a' result of expression ((abs(a) + a) / 2)
|
||||||
|
Loading…
Reference in New Issue
Block a user