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

master
Thomas Schmitt 10 years ago
parent 68742cf165
commit 0d3908da8f
  1. 8
      xorriso/drive_mgt.c
  2. 2
      xorriso/xorriso_timestamp.h

@ -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");

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

Loading…
Cancel
Save