fixed: Cosmetics -> K = Kilo, M = Mega, b = bit, B = byte
authorarnova <arnova@void.org>
Sat, 25 Aug 2012 11:31:30 +0000 (13:31 +0200)
committerarnova <arnova@void.org>
Sat, 25 Aug 2012 11:32:28 +0000 (13:32 +0200)
xbmc/cores/amlplayer/AMLPlayer.cpp
xbmc/cores/dvdplayer/DVDPlayerAudio.cpp
xbmc/utils/FileOperationJob.cpp

index bb0cba0..64ebca7 100644 (file)
@@ -814,7 +814,7 @@ void CAMLPlayer::GetAudioInfo(CStdString &strAudioInfo)
   if (m_audio_streams.size() == 0 || m_audio_index > (int)(m_audio_streams.size() - 1))
     return;
 
-  strAudioInfo.Format("Audio stream (%s) [kB/s:%.2f]",
+  strAudioInfo.Format("Audio stream (%s) [Kb/s:%.2f]",
     AudioCodecName(m_audio_streams[m_audio_index]->format),
     (double)m_audio_streams[m_audio_index]->bit_rate / 1024.0);
 }
index 30e1ccc..f8e1362 100644 (file)
@@ -904,7 +904,7 @@ string CDVDPlayerAudio::GetPlayerInfo()
 {
   std::ostringstream s;
   s << "aq:"     << setw(2) << min(99,m_messageQueue.GetLevel() + MathUtils::round_int(100.0/8.0*m_dvdAudio.GetCacheTime())) << "%";
-  s << ", kB/s:" << fixed << setprecision(2) << (double)GetAudioBitrate() / 1024.0;
+  s << ", Kb/s:" << fixed << setprecision(2) << (double)GetAudioBitrate() / 1024.0;
 
   //print the inverse of the resample ratio, since that makes more sense
   //if the resample ratio is 0.5, then we're playing twice as fast
index 9e12c38..06a9a6f 100644 (file)
@@ -299,9 +299,9 @@ bool CFileOperationJob::CFileOperation::OnFileCallback(void* pContext, int iperc
   double current = data->current + ((double)ipercent * data->opWeight * (double)m_time)/ 100.0;
 
   if (avgSpeed > 1000000.0f)
-    data->base->m_avgSpeed.Format("%.1f Mb/s", avgSpeed / 1000000.0f);
+    data->base->m_avgSpeed.Format("%.1f MB/s", avgSpeed / 1000000.0f);
   else
-    data->base->m_avgSpeed.Format("%.1f Kb/s", avgSpeed / 1000.0f);
+    data->base->m_avgSpeed.Format("%.1f KB/s", avgSpeed / 1000.0f);
 
   return !data->base->ShouldCancel((unsigned)current, 100);
 }