Changeset 6841


Ignore:
Timestamp:
10/17/16 16:52:04 (3 years ago)
Author:
scott
Message:

Fixed Granulate command

Location:
trunk/src/data_sources/tideweb2ew
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/data_sources/tideweb2ew/tideweb2ew.c

    r6810 r6841  
    1818#include "tideweb2ew.h" 
    1919#include "http_fetcher.h" 
     20#include <math.h> 
    2021 
    2122char   progname[] = "tideweb2ew"; 
     
    3132 
    3233static int Debug = 0; 
     34static int Granulate = 0; 
     35 
    3336int err_exit;                           /* an tideweb2ew_die() error number */ 
    3437static unsigned char InstId = 255; 
     
    484487         
    485488        trace2_hdr->starttime = tg_data->item[0].dateTime; 
     489        if ( Granulate ) 
     490            trace2_hdr->starttime = round( trace2_hdr->starttime ); 
    486491        trace2_hdr->endtime = trace2_hdr->starttime + 60; 
    487492 
     
    761766            } 
    762767         } 
     768         else if ( k_its( "Granulate" ) ) { 
     769            Granulate = 1; 
     770         }   
    763771         else if ( k_its( "Debug" ) ) { 
    764772            Debug = 1; 
  • trunk/src/data_sources/tideweb2ew/tideweb2ew.h

    r6810 r6841  
    2525#define TW2EW_DEATH_EW_CONFIG  5 
    2626 
    27 #define VER_NO "0.9.1 2016.09.13" 
     27#define VER_NO "0.9.2 2016.10.17" 
    2828/* keep track of version notes here */ 
    2929 
Note: See TracChangeset for help on using the changeset viewer.