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/AdvancedPublish.cpp (1 of 27 files). Show all

Unified · Split

Source/Libraries/TimeSeriesPlatformLibrary/Samples/AdvancedPublish.cpp+2−1
@@ -243,7 +243,8 @@ bool RunPublisher(uint16_t port, bool genHistory) · 242 unmodified lines
243243 // data type reasonable random values every 33 milliseconds
244244 PublishTimer = NewSharedPtr<Timer>(33, [](Timer*, void*)
245245 {
246− static uint32_t count = MeasurementsToPublish.size();
246+ // If metadata can change, the following integer should not be static:
247+ static uint32_t count = ConvertUInt32(MeasurementsToPublish.size());
247248 const int64_t timestamp = ToTicks(UtcNow());
248249 vector<MeasurementPtr> measurements;
249250

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