anchor.diff:      end.
                       
   
  +linux_info_lookup(Key, File) ->
  +    try [string:trim(S) || S <- string:tokens(os:cmd("grep " ++ "\"" ++ Key ++ "\"" ++ " " ++ File), [$:,$\n])] of
  +        [Key, Value | _] ->
  +            Value;
  +        _ ->
  +            "-"
  +    catch
  +        _:_:_ ->
  +            "-"
  +    end.
  +    
   
   %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
   %% Set kill timer
  
positive.code:             Factor
      end.
  
  linux_which_cpuinfo() ->
      %% Check for x86 (Intel or AMD)
      CPU =
          try [string:trim(S) || S <- string:tokens(os:cmd("grep \"model name\" /proc/cpuinfo"), [$:,$\n])] of
              ["model name", ModelName | _] ->
                  ModelName;
              _ ->
                  %% ARM (at least some distros...)
                  try [string:trim(S) || S <- string:tokens(os:cmd("grep \"Processor\" /proc/cpuinfo"), [$:,$\n])] of
                      ["Processor", Proc | _] ->
                          Proc;
                      _ ->
                          %% Ok, we give up
                          throw(noinfo)
                  catch
                      _:_:_ ->
                          throw(noinfo)
                  end
          catch
              _:_:_ ->
                  throw(noinfo)
          end,
      try [string:trim(S) || S <- string:tokens(os:cmd("grep -i \"bogomips\" /proc/cpuinfo"), [$:,$\n])] of
          [_, BMips | _] ->
              {ok, {CPU, BMips}};
          _ ->
              {ok, CPU}
      catch
          _:_:_ ->
              {ok, CPU}
      end.
  
  %% We *add* the value this return to the Factor.
  linux_which_meminfo() ->
      try [string:trim(S) || S <- string:tokens(os:cmd("grep MemTotal /proc/meminfo"), [$:])] of
          [_, MemTotal] ->
              io:format("Memory:"
                        "~n   ~s"
                        "~n", [MemTotal]),
  
negative.code:                           "~n   Num Schedulers: ~s"
                            "~n", [CPU, str_num_schedulers()]),
                  2; % Be a "bit" conservative...
              _X ->
                  %% io:format("X: ~p~n", [_X]),
                  5 % Be a "bit" (more) conservative...
          end,
      %% Check if we need to adjust the factor because of the memory
  