class PiSys::Bandwidth

Constants

KEY
VARIATIONS

Public Class Methods

new() click to toggle source
Calls superclass method PiSys::Stats::new
# File lib/pi-sys/stats/bandwidth.rb, line 9
def initialize
  super(KEY, VARIATIONS)
end

Public Instance Methods

fetch() click to toggle source
Calls superclass method PiSys::Stats#fetch
# File lib/pi-sys/stats/bandwidth.rb, line 13
def fetch
  super

  # We want this in bytes
  STATS[KEY] = {rx: Usagewatch.uw_bandrx / 8, tx: Usagewatch.uw_bandtx / 8}
end