|
|
@@ -116,10 +116,15 @@ 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__,
|
|
|
- $maxFiles,
|
|
|
+ $testRepository->count(),
|
|
|
'Debug',
|
|
|
$snapshotRepository->count()
|
|
|
);
|