With -list_speeds : reporting the effective speed 0 if it deviates from speed H

This commit is contained in:
Thomas Schmitt 2013-03-06 16:49:32 +00:00
parent 68742cf165
commit 0d3908da8f
2 changed files with 9 additions and 1 deletions

View File

@ -1702,6 +1702,14 @@ int Xorriso_list_speeds(struct XorrisO *xorriso, int flag)
sprintf(respt + strlen(respt), " %5dk , %4.1fx%s\n",
high, ((double) high) * 1000.0 / speed_factor, speed_unit);
Xorriso_result(xorriso,0);
ret= burn_drive_get_best_speed(drive, 0, &item, 2);
if(ret > 0 && item != NULL)
if(item->write_speed != high) {
sprintf(respt, "Write speed 0: %5dk , %4.1fx%s\n",
item->write_speed,
((double) item->write_speed) * 1000.0 / speed_factor, speed_unit);
Xorriso_result(xorriso,0);
}
} else {
sprintf(xorriso->info_text,
"Could not get any write speed information from drive");

View File

@ -1 +1 @@
#define Xorriso_timestamP "2013.03.06.164347"
#define Xorriso_timestamP "2013.03.06.164906"