Changeset 5ffe3ebc271cae0acdd3e485d0291e190b82578d

Show
Ignore:
Timestamp:
07/07/11 02:10:23 (3 years ago)
Author:
Theo Schlossnagle <jesus@omniti.com>
git-committer:
Theo Schlossnagle <jesus@omniti.com> 1310004623 -0400
git-parent:

[804cf4a3206fbff14588050176414b8e53286778]

git-author:
Theo Schlossnagle <jesus@omniti.com> 1310004623 -0400
Message:

with compression (zlib) is B1
without is B2

Already using B versions, yay!

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/noit_check_log.c

    rcd10c8e r5ffe3eb  
    6262 * 
    6363 * BUNDLE 
    64  *  'B1' TIMESTAMP UUID TARGET MODULE NAME strlen(base64(gzipped(payload))) base64(gzipped(payload)) 
     64 *  'B#' TIMESTAMP UUID TARGET MODULE NAME strlen(base64(gzipped(payload))) base64(gzipped(payload)) 
    6565 *   
    6666 */ 
     
    419419  _noit_check_compress_b64(buf, size, &out_buf, &out_size); 
    420420  noit_log(ls, &(c->whence), __FILE__, __LINE__, 
    421                 "B1\t%lu.%03lu\t%s\t%s\t%s\t%s\t%.*s\n", SECPART(&(c->whence)), MSECPART(&(c->whence)), 
    422                      uuid_str, check->name, check->module, check->target, 
    423                      (unsigned int)out_size, out_buf); 
     421           "B%c\t%lu.%03lu\t%s\t%s\t%s\t%s\t%.*s\n", 
     422           use_compression ? '1' : '2', 
     423           SECPART(&(c->whence)), MSECPART(&(c->whence)), 
     424           uuid_str, check->name, check->module, check->target, 
     425           (unsigned int)out_size, out_buf); 
    424426 
    425427  free(buf);