bug fix on process_run

This commit is contained in:
Ryan Tang 2022-01-07 16:33:27 -05:00
parent bd453a99e0
commit c9051347d0
2 changed files with 2 additions and 4 deletions

View File

@ -166,8 +166,6 @@ int main(int argc, char **argv) {
fseek(fpr, fprpos, SEEK_SET);
//Get memory for default number of subevents per channel id
for (i=0; i<MAX_ID; i++){
subevents[i] = (struct subevent *)malloc(sizeof(struct subevent)*DEF_SUB_EVENTS);

View File

@ -97,8 +97,8 @@ if [ $Method -eq 1 ]; then
echo -e "$RED>>> `date` >>>>>>>>>>>>>>>>>>>>>>> Build Events $NC"
if [ ${isBuildEvents} -ge 1 ]; then
if [ -f ${rootFolder} ]; then # root exist
toDateTime=`stat -c "%Z" ${toFolder} | sort -rn | head -1`
rootDateTime=`stat -c "%Z" ${rootFolder} | sort -rn | head -1`
toDateTime=`stat -c "%Z" ${toFile} | sort -rn | head -1`
rootDateTime=`stat -c "%Z" ${rootFile} | sort -rn | head -1`
if [ ${toDateTime} -gt ${rootDateTime} ]; then
if [ ${isBuildEvents} -gt 1 ]; then