anchor.diff:      mem_stats = [] :: [{Name :: binary(), Value :: float()}],
       net_stats = [] :: [{Name :: binary(), Value :: float()}],
       cpu_last = [] :: [{Name :: binary(), WorkJiffies :: integer(), TotalJiffies :: integer()}],
  -    net_last = [] :: [{Name :: binary(), Value :: integer()}],
  +    net_last = [] :: [{rx_b | tx_b | rx_p | tx_p, Name :: binary(), Value :: integer()}],
       last_update = {0, 0, 0} :: {integer(), integer(), integer()} % Timestamp of the last measurement
   }).
   
  
positive.code: %%--------------------------------------------------------------------
  -spec get_network_stats(NetworkStats, TimeElapsed :: float()) -> {Result, NetworkStats} when
      NetworkStats :: [{rx_b | tx_b | rx_p | tx_p, Name :: binary(), Value :: integer()}],
      Result :: [{Name :: binary(), Value :: integer() | float()}].
  get_network_stats(NetworkStats, TimeElapsed) ->
      Dir = "/sys/class/net/",
      case file:list_dir(Dir) of
  
negative.code: %% Calculates network usage statistics, given current and previous measurements.
  %% @end
  %%--------------------------------------------------------------------
  -spec calculate_network_stats(CurrentNetworkStats, NetworkStats, Stats, TimeElapsed :: float()) -> Result when
      CurrentNetworkStats :: [{rx_b | tx_b | rx_p | tx_p | maxthp, Name :: binary(), Value :: float()}],
      NetworkStats :: [{rx_b | tx_b | rx_p | tx_p | maxthp, Name :: binary(), Value :: float()}],
      Stats :: [{Name :: binary(), Value :: float()}],
      Result :: [{Name :: binary(), Value :: float()}].
  % Last net stats were not given (probably first calculation), return empty result.
  calculate_network_stats(_, [], [], _) ->
      [];
  