Changeset 48011 in vbox
- Timestamp:
- Aug 23, 2013 8:10:06 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/testcase/tstCollector.cpp
r48008 r48011 153 153 uint64_t hostRxStop, hostTxStop, speed = 125000000; /* Assume 1Gbit/s */ 154 154 155 RTPrintf("tstCollector: TESTING - Network load, sleeping for 5 s ec...\n");155 RTPrintf("tstCollector: TESTING - Network load, sleeping for 5 s...\n"); 156 156 157 157 hostRxStart = hostTxStart = 0; … … 212 212 213 213 int rc = collector->getHostFilesystemUsage(FSNAME, &total, &used, &available); 214 if (RT_FAILURE(rc)) 215 { 216 RTPrintf("tstCollector: getHostFilesystemUsage() -> %Rrc\n", rc); 217 return 1; 218 } 219 RTPrintf("tstCollector: host root fs total = %lu mB\n", total); 220 RTPrintf("tstCollector: host root fs used = %lu mB\n", used); 221 RTPrintf("tstCollector: host root fs available = %lu mB\n\n", available); 214 if (rc == VERR_NOT_IMPLEMENTED) 215 RTPrintf("tstCollector: getHostFilesystemUsage() not implemented, skipping\n"); 216 else 217 { 218 if (RT_FAILURE(rc)) 219 { 220 RTPrintf("tstCollector: getHostFilesystemUsage() -> %Rrc\n", rc); 221 return 1; 222 } 223 RTPrintf("tstCollector: host root fs total = %lu mB\n", total); 224 RTPrintf("tstCollector: host root fs used = %lu mB\n", used); 225 RTPrintf("tstCollector: host root fs available = %lu mB\n\n", available); 226 } 222 227 return 0; 223 228 } … … 257 262 rc = collector->getHostDiskSize(it->c_str(), &diskSize); 258 263 RTPrintf("tstCollector: TESTING - Disk size (%s) = %llu\n", it->c_str(), diskSize); 259 if (RT_FAILURE(rc)) 264 if (rc == VERR_FILE_NOT_FOUND) 265 RTPrintf("tstCollector: getHostDiskSize(%s) returned VERR_FILE_NOT_FOUND\n", it->c_str()); 266 else if (RT_FAILURE(rc)) 260 267 { 261 268 RTPrintf("tstCollector: getHostDiskSize() -> %Rrc\n", rc); … … 266 273 for (it = disksLoad.begin(); it != disksLoad.end(); ++it) 267 274 { 268 RTPrintf("tstCollector: TESTING - Disk utilization (%s), sleeping for 5 s ec...\n", it->c_str());275 RTPrintf("tstCollector: TESTING - Disk utilization (%s), sleeping for 5 s...\n", it->c_str()); 269 276 270 277 hints.collectHostCpuLoad(); … … 405 412 if (cpuTest) 406 413 { 407 RTPrintf("tstCollector: TESTING - CPU load, sleeping for 5 s ec\n");414 RTPrintf("tstCollector: TESTING - CPU load, sleeping for 5 s...\n"); 408 415 409 416 rc = collector->getRawHostCpuLoad(&hostUserStart, &hostKernelStart, &hostIdleStart); … … 459 466 (unsigned)((processKernelStop - processKernelStart) * 10000 / (processTotalStop - processTotalStart) % 100)); 460 467 461 RTPrintf("tstCollector: TESTING - CPU load, looping for 5 s ec\n");468 RTPrintf("tstCollector: TESTING - CPU load, looping for 5 s...\n"); 462 469 rc = collector->preCollect(hints, 0); 463 470 if (RT_FAILURE(rc))
Note:
See TracChangeset
for help on using the changeset viewer.