Showing the changes to Source/Libraries/TimeSeriesPlatformLibrary/Samples/SubscriberHandler.cpp (1 of 4 files). Show all
Unified · Split
| @@ -112,7 +112,7 @@ void SubscriberHandler::ReceivedNewMeasurements(const vector<MeasurementPtr>& me · 111 unmodified lines | |||
| 112 | int16_t milliseconds; | 112 | int16_t milliseconds; |
| 113 | 113 | ||
| 114 | // Get adjusted value | 114 | // Get adjusted value |
| 115 | float64_t value = measurement->AdjustedValue(); | 115 | const float64_t value = measurement->AdjustedValue(); |
| 116 | 116 | ||
| 117 | // Get time converted to UNIX second of century plus milliseconds | 117 | // Get time converted to UNIX second of century plus milliseconds |
| 118 | measurement->GetUnixTime(soc, milliseconds); | 118 | measurement->GetUnixTime(soc, milliseconds); |
| @@ -125,7 +125,7 @@ void SubscriberHandler::ReceivedNewMeasurements(const vector<MeasurementPtr>& me · 6 unmodified lines | |||
| 125 | 125 | ||
| 126 | // Find associated configuration for measurement | 126 | // Find associated configuration for measurement |
| 127 | if (TryFindTargetConfigurationFrame(measurement->SignalID, configurationFrame)) | 127 | if (TryFindTargetConfigurationFrame(measurement->SignalID, configurationFrame)) |
| 128 | { | 128 | { |
| 129 | // Lookup measurement metadata - it's faster to find metadata from within configuration frame | 129 | // Lookup measurement metadata - it's faster to find metadata from within configuration frame |
| 130 | if (TryGetMeasurementMetdataFromConfigurationFrame(measurement->SignalID, configurationFrame, measurementMetadata)) | 130 | if (TryGetMeasurementMetdataFromConfigurationFrame(measurement->SignalID, configurationFrame, measurementMetadata)) |
| 131 | { | 131 | { |