- Timestamp:
- 10/18/17 13:44:23 (7 years ago)
- Location:
- trunk/FACT++/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/HeadersBiasTemp.h
r18910 r18916 13 13 }; 14 14 } 15 16 struct Data 17 { 18 uint64_t time; 19 float temp[10]; 20 double avg; 21 double rms; 22 } __attribute__((__packed__)); 15 23 } 16 24 -
trunk/FACT++/src/biastemp.cc
r18913 r18916 48 48 string fData; 49 49 50 struct DimData 51 { 52 uint64_t time; 53 float temp[10]; 54 double avg; 55 double rms; 56 } __attribute__((__packed__)); 57 58 virtual void UpdateBiasTemp(const DimData &) 50 virtual void UpdateBiasTemp(const Data &) 59 51 { 60 52 } … … 70 62 pt::read_json(ss, tree); 71 63 72 D imData data;64 Data data; 73 65 data.time = tree.get_child("timestamp").get_value<uint64_t>(); 74 66 … … 298 290 DimDescribedService fDimBiasTemp; 299 291 300 virtual void UpdateBiasTemp(const D imData &data)301 { 302 fDimBiasTemp.setData(&data, sizeof(D imData));292 virtual void UpdateBiasTemp(const Data &data) 293 { 294 fDimBiasTemp.setData(&data, sizeof(Data)); 303 295 fDimBiasTemp.Update(); 304 296 }
Note:
See TracChangeset
for help on using the changeset viewer.