mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 09:57:26 +02:00
fix change that introduced interger division
This commit is contained in:
parent
2a841cc0b8
commit
fdd5953e44
1 changed files with 2 additions and 2 deletions
|
@ -400,10 +400,10 @@ bool OctreeServer::handleHTTPRequest(HTTPConnection* connection, const QUrl& url
|
||||||
statsString += QString().sprintf(" Internal Elements: %s nodes (%5.2f%%)\r\n",
|
statsString += QString().sprintf(" Internal Elements: %s nodes (%5.2f%%)\r\n",
|
||||||
locale.toString((uint)internalNodeCount).rightJustified(16,
|
locale.toString((uint)internalNodeCount).rightJustified(16,
|
||||||
' ').toLocal8Bit().constData(),
|
' ').toLocal8Bit().constData(),
|
||||||
(double)((internalNodeCount / nodeCount) * AS_PERCENT));
|
(double)((internalNodeCount / (float)nodeCount) * AS_PERCENT));
|
||||||
statsString += QString().sprintf(" Leaf Elements: %s nodes (%5.2f%%)\r\n",
|
statsString += QString().sprintf(" Leaf Elements: %s nodes (%5.2f%%)\r\n",
|
||||||
locale.toString((uint)leafNodeCount).rightJustified(16, ' ').toLocal8Bit().constData(),
|
locale.toString((uint)leafNodeCount).rightJustified(16, ' ').toLocal8Bit().constData(),
|
||||||
(double)((leafNodeCount / nodeCount) * AS_PERCENT));
|
(double)((leafNodeCount / (float)nodeCount) * AS_PERCENT));
|
||||||
statsString += "\r\n";
|
statsString += "\r\n";
|
||||||
statsString += "\r\n";
|
statsString += "\r\n";
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue