Ticket #883: statusbox.patch
File statusbox.patch, 974 bytes (added by , 18 years ago) |
---|
-
mythtv/programs/mythfrontend/statusbox.cpp
1063 1063 query.prepare(querystr.arg(hostnames)); 1064 1064 1065 1065 if (query.exec() && query.isActive() && query.size() > 0 && query.next()) 1066 recordingProfilesBPS[QObject::tr("average")] = query.value(0).toInt();1066 recordingProfilesBPS[QObject::tr("average")] = (int)query.value(0).toDouble(); 1067 1067 1068 1068 querystr = 1069 1069 "SELECT max(filesize * 8 / " … … 1075 1075 query.prepare(querystr.arg(hostnames)); 1076 1076 1077 1077 if (query.exec() && query.isActive() && query.size() > 0 && query.next()) 1078 recordingProfilesBPS[QObject::tr("maximum")] = query.value(0).toInt();1078 recordingProfilesBPS[QObject::tr("maximum")] = (int)query.value(0).toDouble(); 1079 1079 } 1080 1080 1081 1081 /** \fn StatusBox::doMachineStatus()