Prettier terrasync progress on splash screen.
This commit is contained in:
parent
4d8c04bc58
commit
793c78512e
1 changed files with 6 additions and 1 deletions
|
@ -435,7 +435,12 @@ void fgSplashProgress( const char *identifier, unsigned int percent ) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (kbytesPerSec > 0) {
|
if (kbytesPerSec > 0) {
|
||||||
oss << " - " << kbytesPerSec << " Kb/sec";
|
if (kbytesPerSec > 100) {
|
||||||
|
double mbytesPerSec = kbytesPerSec / 1024.0;
|
||||||
|
oss << " - " << std::fixed << std::setprecision(1) << mbytesPerSec << "Mb/sec";
|
||||||
|
} else {
|
||||||
|
oss << " - " << kbytesPerSec << " Kb/sec";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
fgSetString("/sim/startup/splash-progress-text", oss.str());
|
fgSetString("/sim/startup/splash-progress-text", oss.str());
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Add table
Reference in a new issue