From 6e4f44ba5a264e7626ba3886f4a57612eda76ba2 Mon Sep 17 00:00:00 2001 From: emanuele-f Date: Thu, 20 Dec 2018 15:52:42 +0100 Subject: [PATCH] Fix empty top talkers table --- scripts/lua/get_top_talkers.lua | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/scripts/lua/get_top_talkers.lua b/scripts/lua/get_top_talkers.lua index 9bb4afb4b391..b8be287d4c36 100644 --- a/scripts/lua/get_top_talkers.lua +++ b/scripts/lua/get_top_talkers.lua @@ -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)