Skip to content

Commit

Permalink
Remove more extraneous diff
Browse files Browse the repository at this point in the history
  • Loading branch information
wingo committed Sep 24, 2018
1 parent a24bb8d commit fa913d5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/apps/intel_mp/intel_mp.lua
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,6 @@ function Intel:new (conf)
-- Figure out if we are supposed to collect device statistics
self.run_stats = conf.run_stats or (self.master and conf.master_stats)
if self.run_stats then
self.sync_timer = lib.throttle(0.01)
local frame = {
-- Keep a copy of the mtu here to have all
-- data available in a single shm frame
Expand All @@ -437,6 +436,7 @@ function Intel:new (conf)
}
self:init_queue_stats(frame)
self.stats = shm.create_frame(self.shm_root.."stats", frame)
self.sync_timer = lib.throttle(0.01)
end

-- Expose per-device statistics from master
Expand Down Expand Up @@ -869,6 +869,9 @@ function Intel:stop ()
pci.set_bus_master(self.pciaddress, false)
pci.close_pci_resource(self.fd, self.base)
end
if self.run_stats then
shm.delete_frame(self.stats)
end
end

function Intel:discard_unsent_packets ()
Expand Down

0 comments on commit fa913d5

Please sign in to comment.