mirror of
https://github.com/overte-org/overte.git
synced 2025-04-15 06:28:48 +02:00
use existing numerical constant in Avatar
This commit is contained in:
parent
6cff75f7c1
commit
aeb04cf9c3
1 changed files with 2 additions and 2 deletions
|
@ -27,6 +27,7 @@
|
|||
#include <GlowEffect.h>
|
||||
#include <LODManager.h>
|
||||
#include <NodeList.h>
|
||||
#include <NumericalConstants.h>
|
||||
#include <PacketHeaders.h>
|
||||
#include <PathUtils.h>
|
||||
#include <PerfStat.h>
|
||||
|
@ -715,8 +716,7 @@ void Avatar::renderDisplayName() {
|
|||
QString renderedDisplayName = _displayName;
|
||||
|
||||
if (DependencyManager::get<AvatarManager>()->shouldShowReceiveStats()) {
|
||||
const float KILOBITS_PER_BYTE = 125.0f;
|
||||
float kilobitsPerSecond = getAverageBytesReceivedPerSecond() / KILOBITS_PER_BYTE;
|
||||
float kilobitsPerSecond = getAverageBytesReceivedPerSecond() / (float) BYTES_PER_KILOBIT;
|
||||
|
||||
renderedDisplayName += QString(" - (%1 Kbps, %2 Hz)")
|
||||
.arg(QString::number(kilobitsPerSecond, 'f', 2))
|
||||
|
|
Loading…
Reference in a new issue