projects
/
project
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
8b2e83f
)
applications/luci-ntpc: Display current system time
author
Steven Barth
<steven@midlink.org>
Sat, 16 Aug 2008 21:50:09 +0000
(21:50 +0000)
committer
Steven Barth
<steven@midlink.org>
Sat, 16 Aug 2008 21:50:09 +0000
(21:50 +0000)
applications/luci-ntpc/luasrc/i18n/ntpc.de.lua
patch
|
blob
|
history
applications/luci-ntpc/luasrc/i18n/ntpc.en.lua
patch
|
blob
|
history
applications/luci-ntpc/luasrc/model/cbi/ntpc/ntpc.lua
patch
|
blob
|
history
applications/luci-ntpc/luasrc/model/cbi/ntpc/ntpcmini.lua
patch
|
blob
|
history
diff --git
a/applications/luci-ntpc/luasrc/i18n/ntpc.de.lua
b/applications/luci-ntpc/luasrc/i18n/ntpc.de.lua
index
89a8ba1
..
6d067ad
100644
(file)
--- a/
applications/luci-ntpc/luasrc/i18n/ntpc.de.lua
+++ b/
applications/luci-ntpc/luasrc/i18n/ntpc.de.lua
@@
-5,4
+5,5
@@
ntpc_interval = "Aktualisierungsintervall (in s)"
ntpc_count = "Anzahl der Zeitmessungen"
ntpc_count_desc = "leer = unendlich"
ntpc_drift = "Zeitgeberjustierung"
ntpc_count = "Anzahl der Zeitmessungen"
ntpc_count_desc = "leer = unendlich"
ntpc_drift = "Zeitgeberjustierung"
-ntpc_drift_freq = "Frequenzabweichung"
\ No newline at end of file
+ntpc_drift_freq = "Frequenzabweichung"
+ntpc_current = "Aktuelle Systemzeit"
\ No newline at end of file
diff --git
a/applications/luci-ntpc/luasrc/i18n/ntpc.en.lua
b/applications/luci-ntpc/luasrc/i18n/ntpc.en.lua
index
411b338
..
58bf7b3
100644
(file)
--- a/
applications/luci-ntpc/luasrc/i18n/ntpc.en.lua
+++ b/
applications/luci-ntpc/luasrc/i18n/ntpc.en.lua
@@
-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_count = "Count of Time Measurements"
ntpc_count_desc = "empty = infinite"
ntpc_drift = "Clock Adjustment"
-ntpc_drift_freq = "Offset Frequency"
\ No newline at end of file
+ntpc_drift_freq = "Offset Frequency"
+ntpc_current = "Current system time"
\ No newline at end of file
diff --git
a/applications/luci-ntpc/luasrc/model/cbi/ntpc/ntpc.lua
b/applications/luci-ntpc/luasrc/model/cbi/ntpc/ntpc.lua
index
d8b35c6
..
2b4e2c2
100644
(file)
--- a/
applications/luci-ntpc/luasrc/model/cbi/ntpc/ntpc.lua
+++ b/
applications/luci-ntpc/luasrc/model/cbi/ntpc/ntpc.lua
@@
-17,6
+17,8
@@
m = Map("ntpclient", translate("ntpc"), translate("ntpc_desc"))
s = m:section(TypedSection, "ntpclient", translate("general"))
s.anonymous = true
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"))
s:option(Value, "interval", translate("ntpc_interval"))
s:option(Value, "count", translate("ntpc_count"), translate("ntpc_count_desc"))
diff --git
a/applications/luci-ntpc/luasrc/model/cbi/ntpc/ntpcmini.lua
b/applications/luci-ntpc/luasrc/model/cbi/ntpc/ntpcmini.lua
index
af36ca4
..
ecb098a
100644
(file)
--- a/
applications/luci-ntpc/luasrc/model/cbi/ntpc/ntpcmini.lua
+++ b/
applications/luci-ntpc/luasrc/model/cbi/ntpc/ntpcmini.lua
@@
-17,6
+17,9
@@
m = Map("ntpclient", translate("ntpc"), translate("ntpc_desc"))
s = m:section(TypedSection, "ntpclient", translate("general"))
s.anonymous = true
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, "interval", translate("ntpc_interval"))