Skip to content

Commit c9792cb

Browse files
authored
Merge pull request #545 from mtconnect/538_fix_check_timestamps
Added correct timestamps to loopback source
2 parents 2257588 + f3e62dc commit c9792cb

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/mtconnect/source/loopback_source.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
#include "mtconnect/pipeline/timestamp_extractor.hpp"
2929
#include "mtconnect/pipeline/upcase_value.hpp"
3030
#include "mtconnect/pipeline/validator.hpp"
31+
#include "mtconnect/pipeline/correct_timestamp.hpp"
3132

3233
using namespace std;
3334

@@ -58,6 +59,9 @@ namespace mtconnect::source {
5859
// Convert values
5960
if (IsOptionSet(m_options, configuration::ConversionRequired))
6061
next = next->bind(make_shared<ConvertSample>());
62+
63+
if (IsOptionSet(m_options, configuration::CorrectTimestamps))
64+
next = next->bind(make_shared<CorrectTimestamp>(m_context));
6165

6266
// Validate Values
6367
if (IsOptionSet(m_options, configuration::Validation))

0 commit comments

Comments
 (0)