]> git.proxmox.com Git - pve-ha-manager.git/blobdiff - src/PVE/HA/Sim/Env.pm
replace can_fork with get_max_workers
[pve-ha-manager.git] / src / PVE / HA / Sim / Env.pm
index e1549889296827bff586485e2ae9cc7b7f1883b3..246ac6046358531d7b35d3155aef1629cdb4409f 100644 (file)
@@ -308,16 +308,17 @@ sub watchdog_close {
     return $self->{hardware}->watchdog_close($wfh);
 }
 
-sub can_fork {
+sub after_fork {
     my ($self) = @_;
 
-    return 1;
+    # nothing to clean up in the simulation environment
 }
 
-sub after_fork {
+
+sub get_max_workers {
     my ($self) = @_;
 
-    # nothing to clean up in the simulation environment
+    return 4;
 }
 
 1;