ce1164c7b5a0ae2e6acf9c25a411df4b4c36244e
jcasper
Wed Mar 15 14:24:23 2017 -0700
Bottleneck server can now impose fractional penalties; hgTracks, hgTrackUi, and hgBlat take advantage, refs #19019, #18461
diff --git src/hg/hgTracks/hgTracks.c src/hg/hgTracks/hgTracks.c
index 6af94f8..a639870 100644
--- src/hg/hgTracks/hgTracks.c
+++ src/hg/hgTracks/hgTracks.c
@@ -9528,31 +9528,31 @@
hPrintf("
5Mbp (6 zeros) | 6 | Public Sessions | p then s |
\n");
hPrintf("Highlight all (mark) | h then m | Clear all Highlights | h then c |
\n");
hPrintf("\n");
hPrintf("
");
hPrintf("\n");
}
void doMiddle(struct cart *theCart)
/* Print the body of an html file. */
{
cart = theCart;
measureTiming = hPrintStatus() && isNotEmpty(cartOptionalString(cart, "measureTiming"));
if (measureTiming)
measureTime("Startup");
-hgBotDelay();
+hgBotDelayFrac(0.25); /* Impose a quarter of the standard CGI penalty */
if (measureTiming)
measureTime("Bottleneck delay");
char *debugTmp = NULL;
/* Uncomment this to see parameters for debugging. */
/* struct dyString *state = NULL; */
/* Initialize layout and database. */
if (measureTiming)
measureTime("Get cart of %d for user:%s session:%s", theCart->hash->elCount,
theCart->userId, theCart->sessionId);
/* #if 1 this to see parameters for debugging. */
/* Be careful though, it breaks if custom track
* is more than 4k */
#if 0
state = cgiUrlString();