for( i=0; i<17; i++ )
*out[i] = 0;
+ char buf[_POSIX_PATH_MAX];
+ sprintf( buf, "%s%s", "daq_evtbuild", getenv("EBNUM") );
+
/*
* *************** nrOfMsgs and status of EB ***************
*/
- char buf[_POSIX_PATH_MAX];
- sprintf( buf, "%s%s", "daq_evtbuild", getenv("EBNUM") );
-
if( Worker_getStatistic( buf, "nrOfMsgs", &tmp ) == -1) {
*out[7] = 0; /* status: Event Builder is off */
if(evtbuildDebug)
*out[2] = (uint32_t)tmp;
if( ((long)(*out[2]) - (long)temp[2]) >= 0 )
- *out[8] = *out[2] - temp[2]; /* calculate evtComp rate */
+ *out[8] = (long)(*out[2]) - (long)temp[2]; /* calculate evtComp rate */
else
*out[8] = *out[2];
*out[3] = (uint32_t)tmp;
if( ((long)(*out[3]) - (long)temp[3]) > 0 )
- *out[10] = *out[3] - temp[3]; /* calculate evtDisc rate */
+ *out[10] = (long)(*out[3]) - (long)temp[3]; /* calculate evtDisc rate */
else
*out[10] = *out[3];
*/
if( Worker_getStatistic( buf, "evtsDataError", &tmp ) == -1){
+ *out[4] = 0;
+
if(evtbuildDebug)
printf("<E> evtbuild.c: Worker_getStatistic failed for evtsDataError!\n");
}
*/
if( Worker_getStatistic( buf, "evtsTagError", &tmp ) == -1){
+ *out[5] = 0;
+
if(evtbuildDebug)
printf("<E> evtbuild.c: Worker_getStatistic failed for evtsTagError!\n");
}
*/
if( Worker_getStatistic( buf, "dataMover", &tmp ) == -1){
+ *out[11] = 0;
+
if(evtbuildDebug)
printf("<E> evtbuild.c: Worker_getStatistic failed for dataMover!\n");
}
*/
if( Worker_getStatistic( buf, "diskNumEB", &tmp ) == -1){
+ *out[12] = 0;
+
if(evtbuildDebug)
printf("<E> evtbuild.c: Worker_getStatistic failed for diskNrEB!\n");
}
sprintf( ebbuf, "evtbuildBuff%d", i );
if( Worker_getStatistic( buf, ebbuf, &tmp ) == -1) {
+ *out[6] = 0;
+
if(evtbuildDebug)
printf("<E> evtbuild.c: Worker_getStatistic failed for %s!\n", buf);
}
c_ptr = strchr(hostname, '0');
if( c_ptr == (char*) NULL ){
+ *out[13] = 0;
+
if(evtbuildDebug)
printf("<E> evtbuild.c: failed to extract a number from the hostname: %s!\n", hostname);
}
if( Worker_getStatistic( buf, "PID", &tmp ) == -1) {
*out[14] = 0;
+ *out[15] = 0;
+
if(evtbuildDebug)
printf("<E> evtbuild.c: Worker_getStatistic failed for PID!\n");
}
if( Worker_getStatistic( buf, "coreNr", &tmp ) == -1) {
*out[16] = 0;
+
if(evtbuildDebug)
printf("<E> evtbuild.c: Worker_getStatistic failed for coreNr!\n");
}