> >> + if ((i & 63) == 0) { > >> + uint64_t t1 = (qemu_get_clock_ns(rt_clock) - bwidth) / > >> 1000000; > >> + if (t1 > 50) { /* 50ms, half buffered_file limit */ > > can't we use a constant ? > > 50 is a constant already, no? Or what do you mean.
I guess Orit means, #define THRESHOLD 50 if (t1 > THRESHOLD) { ... } Regards, chenwj -- Wei-Ren Chen (陳韋任) Computer Systems Lab, Institute of Information Science, Academia Sinica, Taiwan (R.O.C.) Tel:886-2-2788-3799 #1667 Homepage: http://people.cs.nctu.edu.tw/~chenwj