Commit 43a01bc2 authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

allow number of workers to be set via ENV

parent 50985caf
Loading
Loading
Loading
Loading
+4 −5
Original line number Diff line number Diff line
@@ -96,8 +96,7 @@ sub handle_request {
			$info =~ s{ ^ (?: ca\. \s* )? \+ [ 1 2 3 4 ] $ }{}x;
		}
		if ($info) {
			$info
			  =~ s{ ^ (?: ca\. \s* )? \+ (\d+) }{Verspätung ca $1 Min.}x;
			$info =~ s{ ^ (?: ca\. \s* )? \+ (\d+) }{Verspätung ca $1 Min.}x;
		}
		push(
			@departures,
@@ -162,7 +161,7 @@ app->config(
		accepts  => 10,
		listen   => ['http://*:8092'],
		pid_file => '/tmp/db-fake.pid',
		workers  => 2,
		workers  => $ENV{VRRFAKEDISPLAY_WORKERS} // 2,
	},
);