Commit a5661fac authored by Matteo Quintiliani's avatar Matteo Quintiliani

Fixed major bug in time of packets stored in mini-SEED format.

git-svn-id: file:///home/quintiliani/svncopy/nmxptool/trunk@1428 3cd66e75-5955-46cb-a940-c26e5fc5497d
parent 258f6c44
......@@ -2,7 +2,8 @@
nmxptool Release History
#########################
* Release 2.1.2-beta3 (2013/09/18)
* Release 2.1.2-beta4 (2013/11/29)
- Fixed major bug in time of packets stored in mini-SEED format.
- Started to fix 'Ubuntu vs. gettimeofday()' issue
* Release 2.1.1 (2013/05/13)
......
......@@ -1132,8 +1132,6 @@ int nmxp_data_msr_pack(NMXP_DATA_PROCESS *pd, NMXP_DATA_SEED *data_seed, void *p
if(psamples > 0) {
msr->starttime += ( (double) psamples * ( 1.0 / (double) msr->samprate ) );
if(psamples == msr->numsamples) {
/* Remove all samples allocated */
NMXP_MEM_FREE(msr->datasamples);
......@@ -1179,8 +1177,6 @@ int nmxp_data_msr_pack(NMXP_DATA_PROCESS *pd, NMXP_DATA_SEED *data_seed, void *p
psamples, precords, msr->network, msr->station, msr->channel);
}
msr->starttime += ( (double) psamples * ( 1.0 / (double) msr->samprate ) );
NMXP_MEM_FREE(msr->datasamples);
msr->datasamples = NULL;
msr->numsamples = 0;
......
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