Fix not-updated previous stats state values.
[beam_stats.git] / src / beam_stats_state.erl
index 1fff6b0..1fd6e9d 100644 (file)
@@ -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}
This page took 0.023014 seconds and 4 git commands to generate.