Changeset 83a1f4e
- Timestamp:
- 04/23/10 11:37:27 (11 years ago)
- Branches:
- 4.0.1-hotfixes, cachetimestamps, develop, dpdk-ndag, etsilive, getfragoff, help, libtrace4, master, ndag_format, pfring, rc-4.0.1, rc-4.0.2, rc-4.0.3, rc-4.0.4, ringdecrementfix, ringperformance, ringtimestampfixes
- Children:
- a89e2fa
- Parents:
- ba91618
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lib/iow-stdio.c
rbaef9df r83a1f4e 128 128 int err; 129 129 struct iovec iov[2]; 130 int total = towrite - (DATA(iow)->offset+towrite) % MIN_WRITE_SIZE;131 int amount = total;130 int total = (DATA(iow)->offset+towrite); 131 int amount; 132 132 int count=0; 133 /* Round down to the nearest multiple */ 134 total = total - (total % MIN_WRITE_SIZE); 135 amount = total; 133 136 if (DATA(iow)->offset) { 134 137 iov[count].iov_base = DATA(iow)->buffer; … … 149 152 if (err==-1) 150 153 return -1; 151 if (err != total)152 fprintf(stderr,"Wrote %d/%d\n",err,total);153 154 154 155 /* Drop off "err" bytes from the beginning of the buffers */
Note: See TracChangeset
for help on using the changeset viewer.