Skip to content

Commit

Permalink
Fix not-updated previous stats state values.
Browse files Browse the repository at this point in the history
  • Loading branch information
xandkar committed Aug 25, 2015
1 parent deefeb3 commit 093e166
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/beam_stats.app.src
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{application, beam_stats,
[
{description, "Periodic VM stats production and consumption."},
{vsn, "0.5.0"},
{vsn, "0.5.1"},
{registered, []},
{applications,
[ kernel
Expand Down
6 changes: 3 additions & 3 deletions src/beam_stats_state.erl
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ new() ->
-spec update(t()) ->
t().
update(?T
{ previous_io_bytes_in = PreviousIOBytesIn
, previous_io_bytes_out = PreviousIOBytesOut
, previous_context_switches = PreviousContextSwitches
{ current_io_bytes_in = PreviousIOBytesIn
, current_io_bytes_out = PreviousIOBytesOut
, current_context_switches = PreviousContextSwitches
}
) ->
{ {input , CurrentIOBytesIn}
Expand Down

0 comments on commit 093e166

Please sign in to comment.