aboutsummaryrefslogtreecommitdiffstats
path: root/lib/observer/src/ttb.erl
diff options
context:
space:
mode:
authorPiotr Dorobisz <[email protected]>2011-03-09 11:40:54 +0100
committerHenrik Nord <[email protected]>2011-08-30 15:22:16 +0200
commit23981b2336e52f4989ee3222e78b2baf4fb7485b (patch)
tree2b23b87a6906c66e5aaa3f7fd80c5c1b9b649026 /lib/observer/src/ttb.erl
parent7124b6dcc53e521619adfe9c8bc9e0738591c839 (diff)
downloadotp-23981b2336e52f4989ee3222e78b2baf4fb7485b.tar.gz
otp-23981b2336e52f4989ee3222e78b2baf4fb7485b.tar.bz2
otp-23981b2336e52f4989ee3222e78b2baf4fb7485b.zip
fetch is default when stopping
Diffstat (limited to 'lib/observer/src/ttb.erl')
-rw-r--r--lib/observer/src/ttb.erl10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/observer/src/ttb.erl b/lib/observer/src/ttb.erl
index f52b4f33fa..17520c7c84 100644
--- a/lib/observer/src/ttb.erl
+++ b/lib/observer/src/ttb.erl
@@ -471,13 +471,13 @@ stop(Opts) ->
stop_opts(Opts) ->
case {lists:member(format,Opts), lists:member(return, Opts)} of
{true, _} ->
- format; % format implies fetch
+ format;
{_, true} ->
- fetch; % if we specify return, the data should be fetched
+ fetch;
_ ->
- case lists:member(fetch,Opts) of
- true -> fetch;
- false -> nofetch
+ case lists:member(nofetch,Opts) of
+ true -> nofetch;
+ false -> fetch
end
end.