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-filter
diff --git
a/bin/weather-filter
b/bin/weather-filter
index 1fc798fbb23bb4fe2a7699e420d45082f7a7d2be..84c22653696bb52467dfe2a02a8176f815bf9eab 100755
(executable)
--- a/
bin/weather-filter
+++ b/
bin/weather-filter
@@
-42,6
+42,10
@@
function filter_data(dataset,width)
width = 7
end
width = 7
end
+ if #dataset <= width then
+ return dataset
+ end
+
local result = {}
local window_spread = math.floor(width/2)
local result = {}
local window_spread = math.floor(width/2)