2e8da6749a58949d29072faa23fabb3d0345b8aa hiram Sat Aug 17 06:50:58 2019 -0700 can not do the custom track penalty at this point, too late refs #23217 diff --git src/hg/hgTracks/hgTracks.c src/hg/hgTracks/hgTracks.c index 2794a04..de53c8b 100644 --- src/hg/hgTracks/hgTracks.c +++ src/hg/hgTracks/hgTracks.c @@ -6340,37 +6340,43 @@ tg->customTrack = TRUE;// Explicitly declare this a custom track for flatTrack ordering freez(&typeDupe); return tg; } char *getPositionFromCustomTracks() /* Parses custom track data to get the position variable * return - The first chromosome position variable found in the * custom track data. */ { char *pos = NULL; struct slName *bl = NULL; ctList = customTracksParseCart(database, cart, &browserLines, &ctFileName); +#ifdef NOT +/* this is the incorrect location for this to be done. This is actually + * counting all custom tracks whether they are new or not. Every view of + * the tracks adds to the penalty. + */ if (slCount(ctList) > 0) { int trackCount = slCount(ctList); /* add penalty in relation to number of tracks created, and adjust * exitMs accordingly so that it will not hogExit at this time */ (void) earlyBotCheck(enteredMainTime, "hgTracks", (double)(trackCount + 1) * delayFraction, warnMs, (trackCount + 1)*exitMs); } +#endif for (bl = browserLines; bl != NULL; bl = bl->next) { char *words[96]; int wordCount; char *dupe = cloneString(bl->name); wordCount = chopLine(dupe, words); if (wordCount >= 3) { char *command = words[1]; if (sameString(command, "position")) pos = cloneString(words[2]); } freez(&dupe);