diff options
-rw-r--r-- | chrony-details-html.lsp | 6 | ||||
-rw-r--r-- | chrony-model.lua | 2 |
2 files changed, 5 insertions, 3 deletions
diff --git a/chrony-details-html.lsp b/chrony-details-html.lsp index fb74521..46306de 100644 --- a/chrony-details-html.lsp +++ b/chrony-details-html.lsp @@ -14,7 +14,9 @@ io.write("</span>") <H2><%= html.html_escape(data.label) %></H2> <DL> <% displayitem(data.value.time) %> -<% displayitem(data.value.sources) %> -<% displayitem(data.value.sourcestats) %> <% displayitem(data.value.tracking) %> </DL> +<H3>Sources</H3> +<pre><%= html.html_escape(data.value.sources.value) %></pre> +<H3>Source Stats</H3> +<pre><%= html.html_escape(data.value.sourcestats.value) %></pre> diff --git a/chrony-model.lua b/chrony-model.lua index 3af9bd9..c1001ed 100644 --- a/chrony-model.lua +++ b/chrony-model.lua @@ -41,7 +41,7 @@ function validate_config(config) config.value.keyfile.errtxt = "Invalid file name" success = false end - if not validator.is_integer(config.value.commandkey.value) then + if config.value.commandkey.value ~= "" and not validator.is_integer(config.value.commandkey.value) then config.value.commandkey.errtxt = "Must be an integer" success = false end |