Ticket #6588: remoteutil.patch

File remoteutil.patch, 791 bytes (added by Jeff Lu <jll544@…>, 11 years ago)
  • libs/libmythtv/remoteutil.cpp

     
    9898{
    9999    QStringList strlist(QString("QUERY_LOAD"));
    100100
    101     if (gContext->SendReceiveStringList(strlist))
     101    if (gContext->SendReceiveStringList(strlist) && (strlist.count() == 3))
    102102    {
    103103        load[0] = strlist[0].toFloat();
    104104        load[1] = strlist[1].toFloat();
     
    133133{
    134134    QStringList strlist(QString("QUERY_MEMSTATS"));
    135135
    136     if (gContext->SendReceiveStringList(strlist))
     136    if (gContext->SendReceiveStringList(strlist) && (strlist.count() == 4))
    137137    {
    138138        totalMB = strlist[0].toInt();
    139139        freeMB  = strlist[1].toInt();