Software /
code /
prosody-modules
Comparison
mod_server_status/mod_server_status.lua @ 656:74bd7ebe5792
mod_server_status: fix code typo, get_option_array was used instead of get_option_string
author | Marco Cirillo <maranda@lightwitch.org> |
---|---|
date | Sun, 29 Apr 2012 20:18:45 +0000 |
parent | 649:dfd7f1ed7782 |
child | 657:26e61a9afb5c |
comparison
equal
deleted
inserted
replaced
655:81d269f97ea2 | 656:74bd7ebe5792 |
---|---|
2 -- Display server stats in readable XML or JSON format | 2 -- Display server stats in readable XML or JSON format |
3 | 3 |
4 module:depends("http") | 4 module:depends("http") |
5 module:set_global() | 5 module:set_global() |
6 | 6 |
7 local base_path = module:get_option_array("server_status_basepath", "/server-status/") | 7 local base_path = module:get_option_string("server_status_basepath", "/server-status/") |
8 local show_hosts = module:get_option_array("server_status_show_hosts", nil) | 8 local show_hosts = module:get_option_array("server_status_show_hosts", nil) |
9 local show_comps = module:get_option_array("server_status_show_comps", nil) | 9 local show_comps = module:get_option_array("server_status_show_comps", nil) |
10 local json_output = module:get_option_boolean("server_status_json", false) | 10 local json_output = module:get_option_boolean("server_status_json", false) |
11 | 11 |
12 local json_encode = require "util.json".encode | 12 local json_encode = require "util.json".encode |