anchor.diff:                        {ok, <<"full\n">>} -> 2;
                         _ -> 1
                     end,
  -    IntSpeedMB = case file:read_file(?NET_SPEED_FILE(Interface)) of
  +    IntSpeedMbps = case file:read_file(?NET_SPEED_FILE(Interface)) of
                        {ok, SpeedBin} ->
                            binary_to_integer(binary:part(SpeedBin, 0, byte_size(SpeedBin) - 1));
                        _ ->
                            10
                    end,
  -    IntSpeedMB * 1024 * 1024 * DuplexRatio * TimeElapsed.
  +    % IntSpeedMbps is in Mbps so (IntSpeedMbps * 131072) is in Bytes/s
  +    IntSpeedMbps * 131072 * DuplexRatio * TimeElapsed.
   
   
   %%--------------------------------------------------------------------
  
positive.code: %%% This module provides functions for gathering and calculating
  %%% statistical data. They are invoked by node_manager.
  %%% Some statistics require previous measurements to be calculated.
  %%% In order to encapsulate this aspect in this module, there is a
  %%% dedicated record that shall be passed to all function calls.
  %%% @end
  %%%-------------------------------------------------------------------
  
negative.code: calculate_network_stats([{tx_p, Name, StatA} | CurrentNetworkStats], [{tx_p, Name, StatB} | NetworkStats], Stats, TimeElapsed) ->
      calculate_network_stats(CurrentNetworkStats, NetworkStats, [{<<"net_tx_pps_", Name/binary>>, (StatA - StatB) / TimeElapsed} | Stats], TimeElapsed);
  % maxspeed is maximum interface throughput, considering duplex mode
  calculate_network_stats([{maxthp, Name, MaxSpeed} | CurrentNetworkStats], [{maxthp, Name, _} | NetworkStats], Stats, TimeElapsed) ->
      calculate_network_stats(CurrentNetworkStats, NetworkStats, [{<<"net_maxthp_", Name/binary>>, MaxSpeed} | Stats], TimeElapsed);
  calculate_network_stats([{NameA, _} | CurrentNetworkStats], [{NameB, _} | NetworkStats], Stats, TimeElapsed) when NameA > NameB ->
      calculate_network_stats(CurrentNetworkStats, NetworkStats, Stats, TimeElapsed);
  