Changeset 03cbfec


Ignore:
Timestamp:
09/05/05 14:25:00 (15 years ago)
Author:
Daniel Lawson <dlawson@…>
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:
084d95a
Parents:
464266d
Message:

dag_record_size + 2 <- works better than sizeof(dag_record_t)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/format_erf.c

    r464266d r03cbfec  
    618618        int numbytes = 0;
    619619#if HAVE_ZLIB
    620         if ((numbytes = gzwrite(OUTPUT.file, erfptr, sizeof(dag_record_t))) == 0) {
     620        if ((numbytes = gzwrite(OUTPUT.file, erfptr, dag_record_size + 2)) == 0) {
    621621                perror("gzwrite");
    622622                return -1;
     
    627627        }
    628628#else
    629         if ((numbytes = write(OUTPUT.file, erfptr, sizeof(dag_record_t))) == 0) {
     629        if ((numbytes = write(OUTPUT.file, erfptr, dag_record_size + 2)) == 0) {
    630630                perror("write");
    631631                return -1;
Note: See TracChangeset for help on using the changeset viewer.