Commit 1a64d254 authored by Matteo Quintiliani's avatar Matteo Quintiliani

Added output of comp_bytecount


git-svn-id: file:///home/quintiliani/svncopy/nmxptool/trunk@966 3cd66e75-5955-46cb-a940-c26e5fc5497d
parent 72f08522
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
* Istituto Nazionale di Geofisica e Vulcanologia - Italy * Istituto Nazionale di Geofisica e Vulcanologia - Italy
* quintiliani@ingv.it * quintiliani@ingv.it
* *
* $Id: nmxp_base.c,v 1.64 2008-03-09 20:23:54 mtheo Exp $ * $Id: nmxp_base.c,v 1.65 2008-03-26 09:22:54 mtheo Exp $
* *
*/ */
...@@ -616,7 +616,7 @@ NMXP_DATA_PROCESS *nmxp_processCompressedData(char* buffer_data, int length_data ...@@ -616,7 +616,7 @@ NMXP_DATA_PROCESS *nmxp_processCompressedData(char* buffer_data, int length_data
nmxp_log(NMXP_LOG_NORM, NMXP_LOG_D_PACKETMAN, "nmx_instr_id = %d\n", nmx_instr_id); nmxp_log(NMXP_LOG_NORM, NMXP_LOG_D_PACKETMAN, "nmx_instr_id = %d\n", nmx_instr_id);
nmxp_log(NMXP_LOG_NORM, NMXP_LOG_D_PACKETMAN, "nmx_seqno = %d\n", nmx_seqno); nmxp_log(NMXP_LOG_NORM, NMXP_LOG_D_PACKETMAN, "nmx_seqno = %d\n", nmx_seqno);
nmxp_log(NMXP_LOG_NORM, NMXP_LOG_D_PACKETMAN, "nmx_sample_rate = %d\n", nmx_sample_rate); nmxp_log(NMXP_LOG_NORM, NMXP_LOG_D_PACKETMAN, "nmx_sample_rate = %d\n", nmx_sample_rate);
nmxp_log(NMXP_LOG_NORM, NMXP_LOG_D_PACKETMAN, "this_sample_rate = %d\n", this_sample_rate); nmxp_log(NMXP_LOG_NORM, NMXP_LOG_D_PACKETMAN, "this_sample_rate = %d\n", this_sample_rate);
pKey = (nmx_instr_id << 16) | ( 1 << 8) | ( chan_code); pKey = (nmx_instr_id << 16) | ( 1 << 8) | ( chan_code);
...@@ -641,6 +641,8 @@ NMXP_DATA_PROCESS *nmxp_processCompressedData(char* buffer_data, int length_data ...@@ -641,6 +641,8 @@ NMXP_DATA_PROCESS *nmxp_processCompressedData(char* buffer_data, int length_data
comp_bytecount = length_data-21; comp_bytecount = length_data-21;
indata = (unsigned char *) buffer_data + 21; indata = (unsigned char *) buffer_data + 21;
nmxp_log(NMXP_LOG_NORM, NMXP_LOG_D_PACKETMAN, "comp_bytecount = %d (N = %.2f)\n", comp_bytecount, (double) comp_bytecount / 17.0);
/* Unpack the data bundles, each 17 bytes long. */ /* Unpack the data bundles, each 17 bytes long. */
prev_xn = nmx_x0; prev_xn = nmx_x0;
outdata[0] = nmx_x0; outdata[0] = nmx_x0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment