applications/luci-ntpc: Display current system time
This commit is contained in:
parent
8b2e83f2d5
commit
32f2f12438
4 changed files with 9 additions and 2 deletions
|
@ -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"
|
|
@ -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"
|
|
@ -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"))
|
||||
|
||||
|
|
|
@ -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"))
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue