Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
yosukehara committed Jan 14, 2015
1 parent b33fa29 commit 1606782
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
12 changes: 6 additions & 6 deletions src/leo_manager_formatter_json.erl
Original file line number Diff line number Diff line change
Expand Up @@ -375,12 +375,12 @@ du(summary, {TotalNum, ActiveNum, TotalSize, ActiveSize, LastStart, LastEnd}) ->
]});

du(detail, StatsList) when is_list(StatsList) ->
JSON = lists:map(fun({ok, #storage_stats{file_path = FilePath,
compaction_hist = Histories,
total_sizes = TotalSize,
active_sizes = ActiveSize,
total_num = Total,
active_num = Active}}) ->
JSON = lists:map(fun(#storage_stats{file_path = FilePath,
compaction_hist = Histories,
total_sizes = TotalSize,
active_sizes = ActiveSize,
total_num = Total,
active_num = Active}) ->
{LatestStart_1, LatestEnd_1, Duration_1, CompactionRet_1} =
case length(Histories) of
0 ->
Expand Down
12 changes: 6 additions & 6 deletions src/leo_manager_formatter_text.erl
Original file line number Diff line number Diff line change
Expand Up @@ -717,12 +717,12 @@ du(summary, {TotalNum, ActiveNum, TotalSize, ActiveSize, LastStart, LastEnd}) ->
Fun(LastStart), Fun(LastEnd)]);

du(detail, StatsList) when is_list(StatsList) ->
Fun = fun({ok, #storage_stats{file_path = FilePath,
compaction_hist = Histories,
total_sizes = TotalSize,
active_sizes = ActiveSize,
total_num = Total,
active_num = Active}}, Acc) ->
Fun = fun(#storage_stats{file_path = FilePath,
compaction_hist = Histories,
total_sizes = TotalSize,
active_sizes = ActiveSize,
total_num = Total,
active_num = Active}, Acc) ->
{Start_1, End_1, Duration_1, CompactionRet_1} =
case length(Histories) of
0 ->
Expand Down

0 comments on commit 1606782

Please sign in to comment.