mirror of
https://github.com/openvk/openvk
synced 2025-04-19 14:43:01 +03:00
chore(statistics): change behavior of active users count
This commit is contained in:
parent
def76226b7
commit
13b2ab94f7
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