[pve-devel] [PATCH common 2/4] restenv: remove unused variable 'ctime'

Thomas Lamprecht t.lamprecht at proxmox.com
Tue Jul 25 15:32:21 CEST 2017


Signed-off-by: Thomas Lamprecht <t.lamprecht at proxmox.com>
---
 src/PVE/RESTEnvironment.pm | 1 -
 1 file changed, 1 deletion(-)

diff --git a/src/PVE/RESTEnvironment.pm b/src/PVE/RESTEnvironment.pm
index 2aee8de..15eef90 100644
--- a/src/PVE/RESTEnvironment.pm
+++ b/src/PVE/RESTEnvironment.pm
@@ -318,7 +318,6 @@ sub active_workers  {
 	# we try to reduce the amount of data
 	# list all running tasks and task and a few others
 	# try to limit to 25 tasks
-	my $ctime = time();
 	my $max = 25 - scalar(@$tlist);
         foreach my $task (@ta) {
 	    last if $max <= 0;
-- 
2.11.0





More information about the pve-devel mailing list