Skip to content

Commit

Permalink
intel1g: replace lib.timer by lib.throttle
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandergall committed Jul 27, 2017
1 parent 47fa2ce commit e912fa3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/apps/intel/intel1g.lua
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ function Intel1g:new(conf)
txbcast = {counter},
txdrop = {counter},
txerrors = {counter}})
self.stats.sync_timer = lib.timer(0.001, 'repeating', engine.now)
self.stats.sync_timer = lib.throttle(0.001)
-- After a reset of the NIC, the "native" MAC address is copied to
-- the receive address register #0 from the FLASH
local ral, rah = s.RAL[0](), s.RAH[0]()
Expand Down

0 comments on commit e912fa3

Please sign in to comment.