mirror of
https://github.com/openvk/openvk
synced 2025-03-28 12:18:20 +03:00
chore(statistics): change behavior of active users count (#1254)
This commit is contained in:
parent
9ef7d2d7c4
commit
4815186b79
1 changed files with 1 additions and 1 deletions
|
@ -157,7 +157,7 @@ class Users
|
||||||
{
|
{
|
||||||
return (object) [
|
return (object) [
|
||||||
"all" => (clone $this->users)->count('*'),
|
"all" => (clone $this->users)->count('*'),
|
||||||
"active" => (clone $this->users)->where("online > 0")->count('*'),
|
"active" => (clone $this->users)->where("online >= ?", time() - MONTH)->count('*'),
|
||||||
"online" => (clone $this->users)->where("online >= ?", time() - 900)->count('*'),
|
"online" => (clone $this->users)->where("online >= ?", time() - 900)->count('*'),
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue