Skip to content

Commit

Permalink
fixed: Cosmetics -> K = Kilo, M = Mega, b = bit, B = byte
Browse files Browse the repository at this point in the history
  • Loading branch information
arnova committed Aug 25, 2012
1 parent e157561 commit ae00fdf
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion xbmc/cores/amlplayer/AMLPlayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
2 changes: 1 addition & 1 deletion xbmc/cores/dvdplayer/DVDPlayerAudio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions xbmc/utils/FileOperationJob.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

0 comments on commit ae00fdf

Please sign in to comment.