Changeset 80faf74 for srcqt4/pcsoftwaremanager/processManager.cpp
 Timestamp:
 08/22/13 11:16:48 (12 months ago)
 Branches:
 master, 9.2release, releng/10.0, releng/10.0.1, releng/10.0.2
 Children:
 4f9718b, 7d207f5
 Parents:
 f981222
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

srcqt4/pcsoftwaremanager/processManager.cpp
r74c359f r80faf74 189 189 out.append("??"); 190 190 } 191 /*192 int i=0;193 QStringList lab; lab << "KB" <<"MB"<<"GB"<<"TB"<<"PB";194 while( (tot>1000) && (i<lab.length()) ){195 cur=cur/1024; tot=tot/1024; i++;196 }197 198 cur = int(cur*10)/10.0;199 tot = int(tot*10)/10.0;200 if(totErr){ // cur==tot201 //Percentage unknown (since fetch is not done)202 out.append("??::"+QString::number(tot)+" "+lab[i]+"::");203 //stats = QString::number(tot)+" "+lab[i];204 }else{205 out.append(QString::number(percent)+"::"+QString::number(tot)+" "+lab[i]+"::");206 //stats = QString::number(cur)+"/"+QString::number(tot)+" "+lab[i]+" ("+QString::number(percent)+"%)";207 }208 // Format: <current>/<total> <size label> (<percent>%)209 }else if(curok){210 stats = Extras::sizeKToDisplay(QString::number(cur));211 }212 QString speed;213 if(spdok){214 speed = Extras::sizeKToDisplay(QString::number(spd))+"/s";215 }216 //Now put the output string together and return it217 if(stats.isEmpty() && speed.isEmpty()){}218 else if(stats.isEmpty()){ out = speed; }219 else if(speed.isEmpty()){ out = stats; }220 else{ out = QString( tr("%1 at %2") ).arg(stats,speed); }221 */222 //qDebug() << "  Result:" << out;223 191 return out; 224 192 }
Note: See TracChangeset
for help on using the changeset viewer.