comparison fake-data-provider.c @ 107:6fd67aa13d10

Minor simplification
author Daniele Nicolodi <daniele.nicolodi@obspm.fr>
date Fri, 28 Jun 2013 14:33:26 +0200
parents 4102fe614df2
children 5bba1d1c3b46
comparison
equal deleted inserted replaced
106:c1a3b6ef94fe 107:6fd67aa13d10
21 while (acquiring) { 21 while (acquiring) {
22 mark = Timer(); 22 mark = Timer();
23 23
24 /* update data */ 24 /* update data */
25 gettimeofday(&event.time, NULL); 25 gettimeofday(&event.time, NULL);
26 //data[0] = time.tv_sec + time.tv_usec * 1e-6; 26 event.data[0] += 0.1;
27 event.data[0] = event.data[0] + 0.1;
28 27
29 /* push data into the data queue */ 28 /* push data into the data queue */
30 CmtWriteTSQData(dataQueue, &event, 1, TSQ_INFINITE_TIMEOUT, 0); 29 CmtWriteTSQData(dataQueue, &event, 1, TSQ_INFINITE_TIMEOUT, 0);
31 30
32 /* wait till next second */ 31 /* wait till next second */