summaryrefslogtreecommitdiffstats
path: root/chrony-controller.lua
diff options
context:
space:
mode:
Diffstat (limited to 'chrony-controller.lua')
-rw-r--r--chrony-controller.lua10
1 files changed, 5 insertions, 5 deletions
diff --git a/chrony-controller.lua b/chrony-controller.lua
index 4b02a8d..4870690 100644
--- a/chrony-controller.lua
+++ b/chrony-controller.lua
@@ -8,18 +8,18 @@ function status(self)
return self.model.getstatus()
end
+function details(self)
+ return self.model.getdetails()
+end
+
function startstop(self)
return controllerfunctions.handle_startstop(self, self.model.startstop_service, self.model.getstatus, self.clientdata)
end
function config(self)
- return controllerfunctions.handle_form(self, self.model.getconfig, self.model.setconfig, self.clientdata, "Save", "Edit Config", "Configuration Set")
+ return controllerfunctions.handle_form(self, self.model.get_config, self.model.update_config, self.clientdata, "Save", "Edit Config", "Configuration Set")
end
function expert(self)
return controllerfunctions.handle_form(self, self.model.get_filedetails, self.model.update_filedetails, self.clientdata, "Save", "Edit Config File", "Configuration Set")
end
-
-function time(self)
- return self.model.gettime()
-end