Skip to content

Instantly share code, notes, and snippets.

@nocd5
Created March 4, 2015 04:34
Show Gist options
  • Save nocd5/f84e7a03a9abcac9900d to your computer and use it in GitHub Desktop.
Save nocd5/f84e7a03a9abcac9900d to your computer and use it in GitHub Desktop.
wsThinOutInterval = 0でも間引かれる
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