mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 04:44:11 +02:00
switch the avatar stat to kbps
This commit is contained in:
parent
2c0604afd1
commit
3a10da688f
2 changed files with 4 additions and 4 deletions
|
@ -344,7 +344,7 @@ void AvatarMixer::sendStatsPacket() {
|
|||
// add stats for each listerner
|
||||
nodeList->eachNode([&](const SharedNodePointer& node) {
|
||||
QJsonObject avatarStats;
|
||||
avatarStats["bytes_per_second"] = node->getOutboundBandwidth();
|
||||
avatarStats["kbps"] = node->getOutboundBandwidth();
|
||||
AvatarMixerClientData* clientData = static_cast<AvatarMixerClientData*>(node->getLinkedData());
|
||||
if (clientData) {
|
||||
clientData->loadJSONStats(avatarStats);
|
||||
|
|
|
@ -58,8 +58,8 @@ public:
|
|||
void recordBytesSent(int count);
|
||||
void recordBytesReceived(int count);
|
||||
|
||||
float getOutboundBandwidth();
|
||||
float getInboundBandwidth();
|
||||
float getOutboundBandwidth() // in kbps;
|
||||
float getInboundBandwidth() // in kbps;
|
||||
|
||||
friend QDataStream& operator<<(QDataStream& out, const NetworkPeer& peer);
|
||||
friend QDataStream& operator>>(QDataStream& in, NetworkPeer& peer);
|
||||
|
@ -80,4 +80,4 @@ private:
|
|||
QDebug operator<<(QDebug debug, const NetworkPeer &peer);
|
||||
typedef QSharedPointer<NetworkPeer> SharedNetworkPeer;
|
||||
|
||||
#endif // hifi_NetworkPeer_h
|
||||
#endif // hifi_NetworkPeer_h
|
||||
|
|
Loading…
Reference in a new issue