Skip to content

Commit

Permalink
packetblaster: s/app/engine/
Browse files Browse the repository at this point in the history
Refer to the engine API module as 'engine' instead of 'app'.

(The name 'app' is deprecated.)
  • Loading branch information
lukego committed Jul 6, 2015
1 parent 7bc538f commit 52d2b3e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/program/packetblaster/packetblaster.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module(..., package.seeall)

local app = require("core.app")
local engine = require("core.app")
local config = require("core.config")
local timer = require("core.timer")
local pci = require("lib.hardware.pci")
Expand Down Expand Up @@ -45,15 +45,15 @@ function run (args)
config.link(c, "tee."..tostring(nics).."->"..name..".input")
end
end
app.configure(c)
engine.configure(c)
local fn = function ()
print("Transmissions (last 1 sec):")
app.report_each_app()
engine.report_each_app()
end
local t = timer.new("report", fn, 1e9, 'repeating')
timer.activate(t)
if duration then app.main({duration=duration})
else app.main() end
if duration then engine.main({duration=duration})
else engine.main() end
end

function is_device_suitable (pcidev, patterns)
Expand Down

0 comments on commit 52d2b3e

Please sign in to comment.