Permalink
Browse files

cosmetic

  • Loading branch information...
1 parent a72174b commit 5a35bfa061de4d3351805965bbe2fc50e5f0ddae mats cronqvist committed Jan 3, 2011
Showing with 3 additions and 9 deletions.
  1. +0 −1 src/dtopConsumer.erl
  2. +1 −2 src/prf.erl
  3. +2 −6 src/prfHost.erl
View
@@ -52,7 +52,6 @@ memi(Sys) ->
catch _:_ -> ["","","","",""]
end.
-
sys_str(Sys) ->
{_, Time} = calendar:now_to_local_time(lks(now, Sys)),
H = pad(element(1,Time),2,$0,left),
View
@@ -53,8 +53,7 @@ log(ProcInfo,List) ->
%%make ints human readable
human(X) when not is_number(X) -> X;
-human(I) when I =< 0 ->
- "0";
+human(I) when I =< 0 -> I;
human(I) ->
case math:log10(I) of
M when 15=<M -> human(M-15,"P");
View
@@ -26,12 +26,8 @@ start(Name,Node,Consumer,Proxy)
assert_proxy(Proxy),
SpawnFun = fun()->init(Consumer,Node,Proxy) end,
case whereis(Name) of
- undefined ->
- Pid = spawner(SpawnFun),
- true = register(Name, Pid),
- Pid;
- Pid ->
- Pid
+ undefined -> register(Name,Pid = spawner(SpawnFun)),Pid;
+ Pid -> Pid
end.
spawner(F) ->

0 comments on commit 5a35bfa

Please sign in to comment.