From 9d145ecdb1f621e3841be32e796e9a8431f0b1c2 Mon Sep 17 00:00:00 2001 From: Gregory Burd Date: Tue, 17 Jul 2012 16:57:45 -0400 Subject: [PATCH] Minor changes. --- src/hanoidb.erl | 2 +- src/hanoidb_level.erl | 2 +- tools/visualize-hanoi.sh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/hanoidb.erl b/src/hanoidb.erl index 9f58403..c504ae8 100644 --- a/src/hanoidb.erl +++ b/src/hanoidb.erl @@ -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) -> diff --git a/src/hanoidb_level.erl b/src/hanoidb_level.erl index 28f755a..28599d1 100644 --- a/src/hanoidb_level.erl +++ b/src/hanoidb_level.erl @@ -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) -> diff --git a/tools/visualize-hanoi.sh b/tools/visualize-hanoi.sh index d716b90..7047202 100755 --- a/tools/visualize-hanoi.sh +++ b/tools/visualize-hanoi.sh @@ -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: