- Fixed NB indexing

- Fixed an issue with setbin generated time binnings
This commit is contained in:
koennecke
2009-06-30 06:43:23 +00:00
parent 78b2832cbb
commit e076a00fde
8 changed files with 269 additions and 14 deletions

View File

@ -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 {