Commit 8a5c160a authored by Luciano Orsini's avatar Luciano Orsini
Browse files

references #255: changed time to millisecs

parent 058b9cc4
......@@ -17,7 +17,7 @@
// !!! Edit this line to reflect the latest package version !!!
#define WORKSUITE_DIPBRIDGE_VERSION_MAJOR 3
#define WORKSUITE_DIPBRIDGE_VERSION_MINOR 1
#define WORKSUITE_DIPBRIDGE_VERSION_MINOR 2
#define WORKSUITE_DIPBRIDGE_VERSION_PATCH 0
// If any previous versions available E.g. #define ESOURCE_PREVIOUS_VERSIONS "3.8.0,3.8.1"
#define DIPBRIDGE_PREVIOUS_VERSIONS
......
......@@ -308,6 +308,7 @@ void dipbridge::Application::handleMessage(DipSubscription* dipsub, DipData& mes
std::map< std::string,long long >::iterator mit = m_millisecsincelast.find(subname);
if( mit == m_millisecsincelast.end() )
{
LOG4CPLUS_WARN(getApplicationLogger(),subname+" : dip time unchanged, ignore");
return;
}
......
......@@ -44,7 +44,7 @@ xdata::Table::Reference dipbridge::dipDataExtract::getAll( const DipData& dipdat
//Adding timestamp
const DipTimestamp dipt = dipdata.extractDipTime();
data->addColumn("DipTimestamp", "int 64");
xdata::Integer64 fieldvalue(dipt.getAsNanos());
xdata::Integer64 fieldvalue(dipt.getAsMillis());
data->setValueAt(0, "DipTimestamp", fieldvalue);
const char** allfields = dipdata.getTags(nfields);
......
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