- Fixed NB indexing
- Fixed an issue with setbin generated time binnings
This commit is contained in:
@ -70,6 +70,8 @@
|
||||
#include "event.h"
|
||||
#include "status.h"
|
||||
#include "site.h"
|
||||
#define ABS(x) (x < 0 ? -(x) : (x))
|
||||
|
||||
/*
|
||||
#define LOADDEBUG 1
|
||||
*/
|
||||
@ -1070,9 +1072,9 @@ static pDynString formatTOF(pHistMem self)
|
||||
* add the extra one
|
||||
*/
|
||||
if(iLength > 3){
|
||||
delta = timebin[iLength -2] - timebin[iLength -1];
|
||||
delta = ABS(timebin[iLength -2] - timebin[iLength -1]);
|
||||
}
|
||||
snprintf(number,20," %12d", (int)(timebin[iLength -1] + delta));
|
||||
snprintf(number,20," %12d", (int)(timebin[iLength -1] + delta - delay ));
|
||||
DynStringConcat(result,number);
|
||||
return result;
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user