zjcqoo 6 gadi atpakaļ
vecāks
revīzija
15c8fc52bc
2 mainītis faili ar 9 papildinājumiem un 5 dzēšanām
  1. 3 0
      lua/worker.lua
  2. 6 5
      upload.sh

+ 3 - 0
lua/worker.lua

@@ -16,6 +16,9 @@ local function buildDevTrafficFn(dev)
 
   return function(str)
     local m = ngx.re.match(str, regex, 'oi')
+    if m == nil then
+      return '0,0'
+    end
     local sRxBytes = m[1]
     local sTxBytes = m[2]
 

+ 6 - 5
upload.sh

@@ -3,11 +3,12 @@
 
 HOST=etherdream.com
 NODE=(
-  node-aliyun-hk
-  node-aliyun-sg
-  node-bwh-los
-  node-justhost-moscow
-  node-bungee
+  # node-aliyun-hk
+  # node-aliyun-sg
+  # node-bwh-los
+  # node-justhost-moscow
+  # node-bungee
+  node-justhost-novosibirsk
 )
 for v in ${NODE[@]}; do
   echo "$v upload ..."