From 7808e5b77fca74461f5cfd4821e225dc2bdd3270 Mon Sep 17 00:00:00 2001 From: iNPUTmice Date: Thu, 21 Aug 2014 07:47:40 +0200 Subject: added roster versioning to calculation of server compat --- src/eu/siacs/conversations/xmpp/XmppConnection.java | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/eu/siacs') 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); } } -- cgit v1.2.3