Skip to content

Commit ea4cfae

Browse files
committed
Extra field in rundoc
1 parent 4ab355a commit ea4cfae

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

MongoLog.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ int MongoLog::RotateLogFile() {
6767
}
6868
fOutfile << FormatTime(&today) << " [INIT]: logfile initialized\n";
6969
fToday = Today(&today);
70-
std::array<int, 12> days_per_month = {31,28,31,30,31,30,31,31,30,31,30,31};
70+
std::vector<int> days_per_month = {31,28,31,30,31,30,31,31,30,31,30,31};
7171
if (today.tm_year%4 == 0) days_per_month[1] += 1; // the edge-case is SEP
7272
struct tm last_week = today;
7373
last_week.tm_mday -= fDeleteAfterDays;

dispatcher/MongoConnect.py

+1
Original file line numberDiff line numberDiff line change
@@ -543,6 +543,7 @@ def InsertRunDoc(self, detector, goal_state):
543543
if start_time is None:
544544
start_time = datetime.datetime.utcnow()-datetime.timedelta(seconds=2)
545545
run_doc['start'] = start_time
546+
run_doc['end'] = None
546547

547548
self.collections['run'].insert_one(run_doc)
548549
except Exception as e:

0 commit comments

Comments
 (0)