From: Siraaj Khandkar Date: Tue, 25 Aug 2015 13:16:06 +0000 (-0400) Subject: Fix not-updated previous stats state values. X-Git-Tag: 0.5.1 X-Git-Url: https://git.xandkar.net/?a=commitdiff_plain;h=25f1f34b69403b6d5d849749142f95f7da850712;p=beam_stats.git Fix not-updated previous stats state values. --- diff --git a/src/beam_stats.app.src b/src/beam_stats.app.src index e97bd2c..40bab63 100644 --- a/src/beam_stats.app.src +++ b/src/beam_stats.app.src @@ -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 diff --git a/src/beam_stats_state.erl b/src/beam_stats_state.erl index 1fff6b0..1fd6e9d 100644 --- a/src/beam_stats_state.erl +++ b/src/beam_stats_state.erl @@ -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}