git-svn-id: http://ltt.polymtl.ca/svn@122 04897980-b3bd-0310-b5e0-8ef037075253
authoryangxx <yangxx@04897980-b3bd-0310-b5e0-8ef037075253>
Fri, 18 Jul 2003 20:49:30 +0000 (20:49 +0000)
committeryangxx <yangxx@04897980-b3bd-0310-b5e0-8ef037075253>
Fri, 18 Jul 2003 20:49:30 +0000 (20:49 +0000)
ltt/branches/yangxx/convert/convert.c

index b16e8fe353d52185ae40c6f26576645f5b957cce..84c49118b926578958445d93a5db6a5c8e539eb3 100644 (file)
@@ -501,7 +501,7 @@ int main(int argc, char ** argv){
        }else nbBytes = 0;
 
        if(ltt_log_cpu){
-         size_count[cpu_id] += nbBytes + sizeof(uint16_t) + sizeof(uint32_t);
+         size_count[cpu_id] += nbBytes + sizeof(uint16_t) + sizeof(uint32_t)+ event_size;
          if(size_count[cpu_id] > block_size - reserve_size){
            printf("size count exceeds the limit of the buffer\n");
            exit(1);
@@ -514,7 +514,7 @@ int main(int argc, char ** argv){
            write_to_buffer(write_pos[cpu_id], (void*)&c, 1);
          }
        }else{
-         size_count[0] += nbBytes + sizeof(uint16_t) + sizeof(uint32_t);
+         size_count[0] += nbBytes + sizeof(uint16_t) + sizeof(uint32_t)+event_size;
          if(size_count[0] > block_size - reserve_size){
            printf("size count exceeds the limit of the buffer\n");
            exit(1);
This page took 0.026902 seconds and 4 git commands to generate.