summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-nlbwmon/luasrc
AgeCommit message (Collapse)Author
2018-09-29luci-app-nlbwmon: the default CSV delimiter should be a commaAmeer Dawood
Suggested-by: Ameer Dawood <ameer1234567890@gmail.com> [slightly reword commit subject] Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-09-29luci-app-nlbwmon: add proper file names for json and csv exports.Ameer Dawood
Currently, the json and csv exports are just named `data` which is not intuitive. This adds proper file name extensions using the Content-disposition HTTP header. Suggested-by: Ameer Dawood <ameer1234567890@gmail.com> [slightly reword commit message, squash commits] Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-07-09treewide: always include cbi.jsJo-Philipp Wich
Include cbi.js in the main header template like it is done for xhr.js and remove the page specific includes. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-01-17luci-app-nlbw: fix sporadic premature EOF when rendering JSON dataJo-Philipp Wich
Specific timing patterns sometimes caused the LuCI controller to prematurely stop reading data, resulting in truncated JSON output. Turn the nonblocking waitpid() call into a blocking call after the IO read loop to avoid this issue. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2017-08-07luci-app-nlbw: make display template XHTML compliantJo-Philipp Wich
This allows proper rendering in OpenWrt theme. Fixes #1284. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2017-08-01luci-app-nlbwmon: always fetch latest dataJo-Philipp Wich
When displaying the most current accounting period, pass an empty timestamp to the backend in order to query the current in-memory data instead of the latest committed values. This ensures that the dashboard always renders the most current data in its default view. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2017-07-31luci-app-nlbwmon: remove version marker from javascriptsJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2017-07-31luci-app-nlbwmon: improve initial viewJo-Philipp Wich
Make sure that placeholder pie charts are rendered, display a hint about yet missing data in the tables and offer a link to force-commit ("Reload") the data. Also fix some mixed white space, an imbalanced dom operation and sync translation template. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2017-07-28luci-app-nlbwmon: new packageJo-Philipp Wich
This commit introduces luci-app-nlbwmon, a frontend for nlbwmon, the lightweight NetLink BandWidth Montor. The nlbwmon daemon gathers per-host traffic statistics by querying netlink accounting data. Due to this approach, the executable is very small and does not rely on libpcap and CPU intensive raw sockets to monitor traffic. Depends on PR https://github.com/openwrt/packages/pull/4646 Signed-off-by: Jo-Philipp Wich <jo@mein.io>