andre 2 жил өмнө
parent
commit
82f7e0aeb5

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

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