Created
March 4, 2015 04:34
-
-
Save nocd5/f84e7a03a9abcac9900d to your computer and use it in GitHub Desktop.
wsThinOutInterval = 0でも間引かれる
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/ccchart.js b/ccchart.js | |
index d0d5918..38b9353 100644 | |
--- a/ccchart.js | |
+++ b/ccchart.js | |
@@ -2608,7 +2608,9 @@ window.ccchart = | |
//wsの受信データを間引く | |
//itは_wメソッド内のthat.wsuids[uid] | |
//console.log(it.wsIncomingCounter) | |
- if(it.wsIncomingCounter++ === 0){ | |
+ if (interval === 0){ | |
+ return false; | |
+ } else if(it.wsIncomingCounter++ === 0){ | |
return false; | |
} else if(it.wsIncomingCounter >= interval){ | |
//着信カウンターリセット |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment