Skip to content

Commit

Permalink
Fix empty top talkers table
Browse files Browse the repository at this point in the history
  • Loading branch information
emanuele-f committed Dec 20, 2018
1 parent 75f4ee0 commit 6e4f44b
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions scripts/lua/get_top_talkers.lua
Expand Up @@ -113,10 +113,6 @@ local function getHistoricalTopTalkers(ifid, ifname, epoch, add_vlan)
return getTopTalkersFromJSON(res, add_vlan)
end

if (module == nil) then
print("[ ]\n")
else
epoch = epoch+60 -- we return the minute before the event as epochs are stored in the DB 'past' the time period
top = getHistoricalTopTalkers(ifid, ifname, epoch, add_vlan)
print(top)
end
epoch = epoch+60 -- we return the minute before the event as epochs are stored in the DB 'past' the time period
top = getHistoricalTopTalkers(ifid, ifname, epoch, add_vlan)
print(top)

0 comments on commit 6e4f44b

Please sign in to comment.