applications/luci-ntpc: Display current system time

This commit is contained in:
Steven Barth 2008-08-16 21:50:09 +00:00
parent 8b2e83f2d5
commit 32f2f12438
4 changed files with 9 additions and 2 deletions

View file

@ -5,4 +5,5 @@ ntpc_interval = "Aktualisierungsintervall (in s)"
ntpc_count = "Anzahl der Zeitmessungen"
ntpc_count_desc = "leer = unendlich"
ntpc_drift = "Zeitgeberjustierung"
ntpc_drift_freq = "Frequenzabweichung"
ntpc_drift_freq = "Frequenzabweichung"
ntpc_current = "Aktuelle Systemzeit"

View file

@ -5,4 +5,5 @@ ntpc_interval = "Update Interval (in s)"
ntpc_count = "Count of Time Measurements"
ntpc_count_desc = "empty = infinite"
ntpc_drift = "Clock Adjustment"
ntpc_drift_freq = "Offset Frequency"
ntpc_drift_freq = "Offset Frequency"
ntpc_current = "Current system time"

View file

@ -17,6 +17,8 @@ m = Map("ntpclient", translate("ntpc"), translate("ntpc_desc"))
s = m:section(TypedSection, "ntpclient", translate("general"))
s.anonymous = true
s:option(DummyValue, "_time", translate("ntpc_current")).value = os.date("%c")
s:option(Value, "interval", translate("ntpc_interval"))
s:option(Value, "count", translate("ntpc_count"), translate("ntpc_count_desc"))

View file

@ -17,6 +17,9 @@ m = Map("ntpclient", translate("ntpc"), translate("ntpc_desc"))
s = m:section(TypedSection, "ntpclient", translate("general"))
s.anonymous = true
s:option(DummyValue, "_time", translate("ntpc_current")).value = os.date("%c")
s:option(Value, "interval", translate("ntpc_interval"))