Software /
code /
prosody
Comparison
plugins/mod_admin_telnet.lua @ 9409:521df71b2630
mod_admin_telnet: Remove unused histogram [luacheck]
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 30 Sep 2018 14:54:51 +0200 |
parent | 9408:b4a82b726495 |
child | 9410:7355b2d0067c |
comparison
equal
deleted
inserted
replaced
9408:b4a82b726495 | 9409:521df71b2630 |
---|---|
1400 elseif not data.sample_count then | 1400 elseif not data.sample_count then |
1401 print("[not a sampled metric type]"); | 1401 print("[not a sampled metric type]"); |
1402 return self; | 1402 return self; |
1403 end | 1403 end |
1404 | 1404 |
1405 local raw_histogram = require "util.statistics".get_histogram(data); | |
1406 | |
1407 local graph_width, graph_height = 50, 10; | 1405 local graph_width, graph_height = 50, 10; |
1408 local eighth_chars = " ▁▂▃▄▅▆▇█"; | 1406 local eighth_chars = " ▁▂▃▄▅▆▇█"; |
1409 | 1407 |
1410 local range = data.max - data.min; | 1408 local range = data.max - data.min; |
1411 | 1409 |