Minor changes.

This commit is contained in:
Gregory Burd 2012-07-17 16:57:45 -04:00
parent 4e9ddbe65c
commit 9d145ecdb1
3 changed files with 3 additions and 3 deletions

View file

@ -155,7 +155,7 @@ fold_range(Ref,Fun,Acc0,#key_range{limit=Limit}=Range) ->
ok = gen_server:call(Ref, {RangeType, FoldWorkerPID, Range}, infinity),
MRef = erlang:monitor(process, FoldWorkerPID),
Result = receive_fold_range(MRef, FoldWorkerPID, Fun, Acc0, Limit),
?log("fold_range done: self:~p, result=~P~n", [self(), Result]),
?log("fold_range done: self:~p, result=~p~n", [self(), Result]),
Result.
receive_fold_range(MRef,PID,_,Acc0, 0) ->

View file

@ -157,7 +157,7 @@ initialize(State) ->
catch
Class:Ex when not (Class == exit andalso Ex == normal) ->
?log("crashing ~p:~p ~p~n", [Class,Ex,erlang:get_stacktrace()]),
error_logger:error_msg("crash2: ~p:~p ~p~n", [Class,Ex,erlang:get_stacktrace()])
error_logger:error_msg("crash: ~p:~p ~p~n", [Class,Ex,erlang:get_stacktrace()])
end.
initialize2(State) ->

View file

@ -98,7 +98,7 @@ function dynamic() {
let "now=now-start"
free=`df -m . 2> /dev/null | tail -1 | awk '{print $4}'`
used=`du -m 2> /dev/null | awk '{print $1}' `
printf "%5d %6d [%s\n" "$t" "$now" "$s ${used}Mb (${free}Mb free)"
printf "%5d %6d [%s\n" "$t" "$now" "$s ${used}MB (${free}MB free)"
old="$s"
else
# Sleep a little bit: