Ticket #9253: progdetails-size.patch

File progdetails-size.patch, 686 bytes (added by John Veness <John.Veness.mythtv@…>, 14 years ago)
  • mythtv/programs/mythfrontend/progdetails.cpp

     
    662662        recordingHost = m_progInfo.GetHostname();
    663663        recordedFilename = m_progInfo.GetBasename();
    664664        recordedFileSize = QString("%1 ")
    665             .arg((double)(m_progInfo.GetFilesize()>>30),0,'f',2);
     665            .arg((double)(m_progInfo.GetFilesize() / 1024.0 / 1024.0 / 1024.0), 0, 'f', 2);
    666666        recordedFileSize += tr("GB", "GigaBytes");
    667667
    668668        query.prepare("SELECT profile FROM recorded"