andre 2 жил өмнө
parent
commit
62c93fa650

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

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