andre 2 лет назад
Родитель
Сommit
82f7e0aeb5
1 измененных файлов с 1 добавлено и 6 удалено
  1. 1 6
      app/Services/Cloud/ResourceGuard.php

+ 1 - 6
app/Services/Cloud/ResourceGuard.php

@@ -116,15 +116,10 @@ class ResourceGuard
         //Files limit
         $maxFiles = $this->getWhmcsConfigOption(ConfigurableOption::SNAPSHOTS, $this->configuration()->getSnapshotMaxFiles());
 
-        $testRepository = new SnapshotRepository();
-        $testRepository->setApi($this->api());
-        $testRepository->findByVm(sl('Vm')->getVm());
-        $testRepository->ignoreCurrent(true);
-
         logModuleCall(
             'ProxmoxCloudVps',
             __FUNCTION__,
-            $testRepository->count(),
+            $maxFiles,
             'Debug',
             $snapshotRepository->count()
         );