Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

cosmetic

  • Loading branch information...
commit 5a35bfa061de4d3351805965bbe2fc50e5f0ddae 1 parent a72174b
mats cronqvist authored
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
1  src/dtopConsumer.erl
@@ -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
3  src/prf.erl
@@ -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
8 src/prfHost.erl
@@ -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) ->
Please sign in to comment.
Something went wrong with that request. Please try again.