aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoriNPUTmice <daniel@gultsch.de>2014-08-21 07:47:40 +0200
committeriNPUTmice <daniel@gultsch.de>2014-08-21 07:47:40 +0200
commit7808e5b77fca74461f5cfd4821e225dc2bdd3270 (patch)
tree4e798ee0500fcf80460d879a2c94b6629a508dec
parent419c5e065728dc75d2b21fa898deabe128627ffc (diff)
added roster versioning to calculation of server compat
-rw-r--r--src/eu/siacs/conversations/xmpp/XmppConnection.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/eu/siacs/conversations/xmpp/XmppConnection.java b/src/eu/siacs/conversations/xmpp/XmppConnection.java
index 65d8a425..c3d70f3b 100644
--- a/src/eu/siacs/conversations/xmpp/XmppConnection.java
+++ b/src/eu/siacs/conversations/xmpp/XmppConnection.java
@@ -948,6 +948,11 @@ public class XmppConnection implements Runnable {
} else {
++miss;
}
+ if (rosterVersioning()) {
+ ++hit;
+ } else {
+ ++miss;
+ }
return (int) (((float) hit) / (hit + miss) * 100);
}
}