mirror of
https://github.com/YunoHost-Apps/pixelfed_ynh.git
synced 2024-09-03 20:06:04 +02:00
Update AvatarStorage, improve overview calculations
This commit is contained in:
parent
d52ee26dd7
commit
733b9fd000
1 changed files with 4 additions and 4 deletions
|
@ -51,8 +51,8 @@ class AvatarStorage extends Command
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
'Remote',
|
'Remote',
|
||||||
Avatar::whereNotNull('is_remote')->count(),
|
Avatar::whereIsRemote(true)->count(),
|
||||||
PrettyNumber::size(Avatar::whereNotNull('is_remote')->sum('size'))
|
PrettyNumber::size(Avatar::whereIsRemote(true)->sum('size'))
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
'Cached (CDN)',
|
'Cached (CDN)',
|
||||||
|
@ -61,8 +61,8 @@ class AvatarStorage extends Command
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
'Uncached',
|
'Uncached',
|
||||||
Avatar::whereNull('is_remote')->whereNull('cdn_url')->count(),
|
Avatar::whereNull('cdn_url')->count(),
|
||||||
PrettyNumber::size(Avatar::whereNull('is_remote')->whereNull('cdn_url')->sum('size'))
|
PrettyNumber::size(Avatar::whereNull('cdn_url')->sum('size'))
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
'------------',
|
'------------',
|
||||||
|
|
Loading…
Add table
Reference in a new issue