Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Запуск на freebsd #24

Merged
merged 2 commits into from

2 participants

David Klassen Dmitry Koterov
David Klassen

Добавил проверку OS для запуска на freebsd (аналогично macosx)

Dmitry Koterov

BTW you have an error here, must be

/^(freebsd|darwin)$/

Could you please correct?

David Klassen

No problem

Dmitry Koterov DmitryKoterov merged commit 0b59237 into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Oct 5, 2012
  1. David Klassen
Commits on Oct 12, 2012
  1. David Klassen

    Fixed OS check regexp

    DavidKlassen authored
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  Realplexor/Tools.pm
2  Realplexor/Tools.pm
View
@@ -41,7 +41,7 @@ sub rerun_unlimited {
# Returns amount of used memory by pid (in megabytes).
sub get_memory_usage {
my ($pid) = @_;
- my $h = "$^O" eq "darwin" ? " | awk 'NR>1'" : "--no-headers";
+ my $h = "$^O" =~ /^(freebsd|darwin)$/ ? " | awk 'NR>1'" : "--no-headers";
my $mem = `ps -p $pid -o rss $h`;
return 0 if !$mem;
$mem =~ s/\s+//sg;
Something went wrong with that request. Please try again.