Explorar el Código

debug limit snapshots

andre hace 2 años
padre
commit
82f7e0aeb5
Se han modificado 1 ficheros con 1 adiciones y 6 borrados
  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()
         );