Commit c7dc1e70 authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gato

Modified statistics to conform new API.

git-svn-id: http://svn.igniterealtime.org/svn/repos/wildfire/trunk@3845 b35dd754-fafc-0310-a699-88a17e54d16e
parent 4c37dba9
...@@ -1148,7 +1148,7 @@ public class MultiUserChatServerImpl extends BasicModule implements MultiUserCha ...@@ -1148,7 +1148,7 @@ public class MultiUserChatServerImpl extends BasicModule implements MultiUserCha
return LocaleUtils.getLocalizedString("muc.room.summary.total_room"); return LocaleUtils.getLocalizedString("muc.room.summary.total_room");
} }
public double sample(long timePeriod) { public double sample() {
return getNumberChatRooms(); return getNumberChatRooms();
} }
}; };
...@@ -1178,7 +1178,7 @@ public class MultiUserChatServerImpl extends BasicModule implements MultiUserCha ...@@ -1178,7 +1178,7 @@ public class MultiUserChatServerImpl extends BasicModule implements MultiUserCha
return LocaleUtils.getLocalizedString("muc.stats.occupants.label"); return LocaleUtils.getLocalizedString("muc.stats.occupants.label");
} }
public double sample(long timePeriod) { public double sample() {
return getNumberRoomOccupants(); return getNumberRoomOccupants();
} }
}; };
...@@ -1208,7 +1208,7 @@ public class MultiUserChatServerImpl extends BasicModule implements MultiUserCha ...@@ -1208,7 +1208,7 @@ public class MultiUserChatServerImpl extends BasicModule implements MultiUserCha
return LocaleUtils.getLocalizedString("muc.stats.users.label"); return LocaleUtils.getLocalizedString("muc.stats.users.label");
} }
public double sample(long timePeriod) { public double sample() {
return getNumberConnectedUsers(); return getNumberConnectedUsers();
} }
}; };
...@@ -1238,7 +1238,7 @@ public class MultiUserChatServerImpl extends BasicModule implements MultiUserCha ...@@ -1238,7 +1238,7 @@ public class MultiUserChatServerImpl extends BasicModule implements MultiUserCha
return LocaleUtils.getLocalizedString("muc.stats.incoming.label"); return LocaleUtils.getLocalizedString("muc.stats.incoming.label");
} }
public double sample(long timePeriod) { public double sample() {
return inMessages.getAndSet(0); return inMessages.getAndSet(0);
} }
}; };
...@@ -1268,7 +1268,7 @@ public class MultiUserChatServerImpl extends BasicModule implements MultiUserCha ...@@ -1268,7 +1268,7 @@ public class MultiUserChatServerImpl extends BasicModule implements MultiUserCha
return LocaleUtils.getLocalizedString("muc.stats.outgoing.label"); return LocaleUtils.getLocalizedString("muc.stats.outgoing.label");
} }
public double sample(long timePeriod) { public double sample() {
return outMessages.getAndSet(0); return outMessages.getAndSet(0);
} }
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment