Changeset 72 in tmcsimulator for branches/fep_client_cpp/fep_client.cpp
- Timestamp:
- 09/07/2017 01:36:46 PM (9 years ago)
- File:
-
- 1 edited
-
branches/fep_client_cpp/fep_client.cpp (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/fep_client_cpp/fep_client.cpp
r71 r72 28 28 } 29 29 30 31 30 void xfer_replys(CLIENT *clnt, FEP_LINE_LDS *lines, int lines_size, LDS_LOOP *ldsMap) 32 31 { 32 printf("Lines_size %d\n", lines_size); 33 33 int i, j; // i == line_index, j == lds_index 34 34 void *rv; … … 58 58 uci_unix_simulation_time(uci_simulation_time()); // GMT time 59 59 */ 60 fepReply.schedule_time = time(NULL); 61 62 60 63 fepReply.user_info1 = lines[i].lineNum; 61 64 fepReply.user_info2 = lines[i].lineNum; … … 134 137 135 138 /* Load data to be xfered to ATMS */ 136 int lines_size; 139 int lines_size = 0; 140 printf("Loading lines and ldsMap\n"); 137 141 FEP_LINE_LDS *lines = load_lines(&lines_size, "./lines_atms.txt"); 142 printf("Done loading lines\n"); 138 143 LDS_LOOP *ldsMap = load_lds("./lds_atms.txt"); 144 printf("Done loading lines and lds...\n"); 139 145 140 146 /* Transfer data to ATMS */ … … 142 148 143 149 /* Free allocated memory */ 144 free(lines);145 free(ldsMap);146 150 147 151 /* Destroy client */
Note: See TracChangeset
for help on using the changeset viewer.
