Comparison

plugins/mod_admin_telnet.lua @ 9408:b4a82b726495

mod_admin_telnet: Remove unused variable [luacheck]
author Kim Alvefur <zash@zash.se>
date Sun, 30 Sep 2018 14:48:44 +0200
parent 9406:7f277975768d
child 9409:521df71b2630
comparison
equal deleted inserted replaced
9407:0a8ddd855587 9408:b4a82b726495
1298 end 1298 end
1299 1299
1300 function stats_methods:summary() 1300 function stats_methods:summary()
1301 local statistics = require "util.statistics"; 1301 local statistics = require "util.statistics";
1302 for _, stat_info in ipairs(self) do 1302 for _, stat_info in ipairs(self) do
1303 local name, type, value, data = stat_info[1], stat_info[2], stat_info[3], stat_info[4]; 1303 local type, value, data = stat_info[2], stat_info[3], stat_info[4];
1304 if data and data.samples then 1304 if data and data.samples then
1305 table.insert(stat_info.output, string.format("Count: %d (%d captured)", 1305 table.insert(stat_info.output, string.format("Count: %d (%d captured)",
1306 data.count, 1306 data.count,
1307 data.sample_count 1307 data.sample_count
1308 )); 1308 ));