patching and testing again...
This commit is contained in:
parent
b6d49bd6f8
commit
f3dfe77e3a
@ -5,12 +5,12 @@ DATAFILE="foo.dat"
|
||||
TMPFILE="/tmp/dd2data"
|
||||
|
||||
IMAGE="graphe.png"
|
||||
NB_READ=5000
|
||||
NB_READ=500
|
||||
|
||||
./t -vv -n ${NB_READ} -d ${DEVICE} | tee -a ${DATAFILE}
|
||||
|
||||
gnuplot << __EOC__
|
||||
set term png size 4200,640
|
||||
set term png size 1280,640
|
||||
set output "${IMAGE}"
|
||||
set grid
|
||||
set title "Temperature dans le Double Dragon 2"
|
||||
|
@ -23,7 +23,7 @@ int loop(int sfd, int iters)
|
||||
{
|
||||
int count, foo;
|
||||
long temps;
|
||||
char ligne[200];
|
||||
char ligne[200], buff[200];
|
||||
float datas[4];
|
||||
struct tm *p_tms;
|
||||
|
||||
@ -39,9 +39,10 @@ for (count=0; count<iters; count++) {
|
||||
if (verbosity > 1)
|
||||
{
|
||||
p_tms = localtime(&temps);
|
||||
(void)strftime(ligne, 19, "%H:%M:%S", p_tms);
|
||||
fprintf(stderr, "%6d %s\n", count, ligne);
|
||||
(void)strftime(buff, 19, "%H:%M:%S", p_tms);
|
||||
fprintf(stderr, "%s %6d / %d\n", buff, count, iters);
|
||||
}
|
||||
//
|
||||
foo = parse4values(ligne, 'T', datas);
|
||||
//
|
||||
if (foo >= 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user