From 093e16693e52d84ef7c158aa9d808efe6a9b2e85 Mon Sep 17 00:00:00 2001 From: Siraaj Khandkar Date: Tue, 25 Aug 2015 09:16:06 -0400 Subject: [PATCH] Fix not-updated previous stats state values. --- src/beam_stats.app.src | 2 +- src/beam_stats_state.erl | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) 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} -- 2.20.1