Skip to content

Commit

Permalink
Clean up the overall timer
Browse files Browse the repository at this point in the history
  • Loading branch information
neilenns committed Feb 12, 2024
1 parent d197713 commit f833b9c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server/src/services/vatsimFlightPlans.mts
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,7 @@ function setCoast(plan: VatsimFlightPlanDocument) {
// Takes the massive list of data from vatsim and processes it into the database.
// Both pilots (a.k.a flight plans) and prefiles are processed.
export async function processVatsimFlightPlanData(vatsimData: IVatsimData) {
const overallProfiler = logger.startTimer();
let profiler = logger.startTimer();

// Build a list of all the incoming plans, regardless of whether it's a prefile,
Expand Down Expand Up @@ -357,7 +358,7 @@ export async function processVatsimFlightPlanData(vatsimData: IVatsimData) {

logger.debug(`Saved ${savedDataCount} updated plans`, { savedDataCount });

profiler.done({
overallProfiler.done({
message: `Done processing ${incomingPlans.length} incoming VATSIM flight plans`,
counts: {
current: currentPlans.length,
Expand Down

0 comments on commit f833b9c

Please sign in to comment.