mirror of
https://github.com/PhyreApps/PhyrePanel.git
synced 2024-09-19 23:31:12 +00:00
Update BackupStats.php
This commit is contained in:
parent
bc322f7084
commit
1cf0804f81
|
@ -28,12 +28,6 @@ class BackupStats extends BaseWidget
|
||||||
{
|
{
|
||||||
|
|
||||||
$stats = Cache::remember('backup-stats', 300, function () {
|
$stats = Cache::remember('backup-stats', 300, function () {
|
||||||
$findBackups = Backup::select(['id'])->where('status', 'processing')->get();
|
|
||||||
if ($findBackups->count() > 0) {
|
|
||||||
foreach ($findBackups as $backup) {
|
|
||||||
$backup->checkBackup();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
$usedSpace = 0;
|
$usedSpace = 0;
|
||||||
$backupPath = BackupStorage::getPath();
|
$backupPath = BackupStorage::getPath();
|
||||||
if (is_dir($backupPath)) {
|
if (is_dir($backupPath)) {
|
||||||
|
|
Loading…
Reference in a new issue