]> git.mxchange.org Git - flightgear.git/commitdiff
Improved feedback from scenery download.
authorJames Turner <zakalawe@mac.com>
Wed, 8 Jun 2016 14:28:27 +0000 (15:28 +0100)
committerRoland Haeder <roland@mxchange.org>
Thu, 22 Sep 2016 21:27:36 +0000 (23:27 +0200)
src/Viewer/splash.cxx

index bfb4d3625db7bcbd26b7abe1ae814be681fac440..a51b4f6073f27c02cb1068468c299a572293fb61 100644 (file)
@@ -424,9 +424,18 @@ void fgSplashProgress( const char *identifier, unsigned int percent ) {
     if (!strcmp(identifier,"downloading-scenery")) {
         std::ostringstream oss;
         unsigned int kbytesPerSec = fgGetInt("/sim/terrasync/transfer-rate-bytes-sec") / 1024;
+        unsigned int kbytesPending = fgGetInt("/sim/terrasync/pending-kbytes");
         oss << text;
+        if (kbytesPending > 0) {
+            if (kbytesPending > 1024) {
+                int mBytesPending = kbytesPending >> 10;
+                oss << " " << mBytesPending << "Mb";
+            } else {
+                oss << " " << kbytesPending << "Kb";
+            }
+        }
         if (kbytesPerSec > 0) {
-            oss << " - " << kbytesPerSec << " KBytes/sec";
+            oss << " - " << kbytesPerSec << " Kb/sec";
         }
         fgSetString("/sim/startup/splash-progress-text", oss.str());
         return;