History

TimeSeriesPlatformLibrary: Back ported bug fixes and 64-bit improvements to GEP from recent STTP updates.

J. Ritchie Carroll committed 7 years ago

Commit b4c04411 parent 7020fe527 files · +180 −125Browse files

Showing the changes to Source/Libraries/TimeSeriesPlatformLibrary/Samples/SimplePublish.cpp (1 of 27 files). Show all

Unified · Split

Source/Libraries/TimeSeriesPlatformLibrary/Samples/SimplePublish.cpp+2−1
@@ -126,7 +126,8 @@ bool RunPublisher(uint16_t port) · 125 unmodified lines
126126 // send random values every 33 milliseconds
127127 PublishTimer = NewSharedPtr<Timer>(33, [](Timer*, void*)
128128 {
129− static uint32_t count = MeasurementsToPublish.size();
129+ // If metadata can change, the following integer should not be static:
130+ static uint32_t count = ConvertUInt32(MeasurementsToPublish.size());
130131 const int64_t timestamp = ToTicks(UtcNow());
131132 vector<MeasurementPtr> measurements;
132133

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t