Skip to content

Commit

Permalink
Fixing active transfer stats size
Browse files Browse the repository at this point in the history
  • Loading branch information
drewkerrigan committed Aug 4, 2016
1 parent 5fefd9e commit 677d408
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/re_node_control.erl
Original file line number Diff line number Diff line change
Expand Up @@ -574,7 +574,10 @@ get_active_transfers({status_v2, Status}) ->
BytesS = proplists:get_value(bytes_per_s, StatsPropList),
LastUpdate = datetime_str(proplists:get_value(last_update, StatsPropList)),
Objs = proplists:get_value(objs_total, StatsPropList),
Size = proplists:get_value(size, StatsPropList),
Size = case proplists:get_value(size, StatsPropList) of
undefined -> undefined;
{S, _} -> S
end,
DonePctDecimal = proplists:get_value(pct_done_decimal, StatsPropList),
[{objs_per_s, ObjsS},
{bytes_per_s, BytesS},
Expand Down

0 comments on commit 677d408

Please sign in to comment.