projects
/
weathermon.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Разблокировка БД в случае обнаружения "зависшей" блокировки. Причина образования...
[weathermon.git]
/
bin
/
weather-lcd
diff --git
a/bin/weather-lcd
b/bin/weather-lcd
index 9ecadfa0ee3f37e191d82ad288250322807118d7..9abd84fac3d9cad802fe0c0e454ba0d62ff55723 100755
(executable)
--- a/
bin/weather-lcd
+++ b/
bin/weather-lcd
@@
-251,14
+251,19
@@
setup_pages(conn)
while true do
while true do
- vals = process_file()
- process_vals(vals)
+ pcall( function ()
- if log_con then
- process_graphs()
- end
+ vals = process_file()
+ process_vals(vals)
+
+ if log_con then
+ process_graphs()
+ end
- os.execute("inotifywait -e MODIFY \""..weather_file.."\"")
- socket.sleep(3)
+ os.execute("inotifywait -e MODIFY \""..weather_file.."\"")
+
+ end)
+
+ socket.sleep(3)
end
end