Ticket #6588: remoteutil.patch
File remoteutil.patch, 791 bytes (added by , 15 years ago) |
---|
-
libs/libmythtv/remoteutil.cpp
98 98 { 99 99 QStringList strlist(QString("QUERY_LOAD")); 100 100 101 if (gContext->SendReceiveStringList(strlist) )101 if (gContext->SendReceiveStringList(strlist) && (strlist.count() == 3)) 102 102 { 103 103 load[0] = strlist[0].toFloat(); 104 104 load[1] = strlist[1].toFloat(); … … 133 133 { 134 134 QStringList strlist(QString("QUERY_MEMSTATS")); 135 135 136 if (gContext->SendReceiveStringList(strlist) )136 if (gContext->SendReceiveStringList(strlist) && (strlist.count() == 4)) 137 137 { 138 138 totalMB = strlist[0].toInt(); 139 139 freeMB = strlist[1].toInt();