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/hgBlat/hgBlat.c src/hg/hgBlat/hgBlat.c
index 2c99c5d..6f0bf80 100644
--- src/hg/hgBlat/hgBlat.c
+++ src/hg/hgBlat/hgBlat.c
@@ -685,32 +685,32 @@
 if (qType == gftProt)
     {
     minSingleSize = 14;
     }
 else if (qType == gftDnaX)
     {
     minSingleSize = 36;
     }
 
 
 /* Loop through each sequence. */
 for (seq = seqList; seq != NULL; seq = seq->next)
     {
     printf(" "); fflush(stdout);  /* prevent apache cgi timeout by outputting something */
     oneSize = realSeqSize(seq, !isTx);
-    if ((seqCount&1) == 0)	// Call bot delay every 2nd time starting with first time
-	hgBotDelay();
+    // Impose half the usual bot delay per sequence
+	hgBotDelayFrac(0.5);
     if (++seqCount > maxSeqCount)
         {
 	warn("More than 25 input sequences, stopping at %s.",
 	    seq->name);
 	break;
 	}
     if (oneSize > maxSingleSize)
 	{
 	warn("Sequence %s is %d letters long (max is %d), skipping",
 	    seq->name, oneSize, maxSingleSize);
 	continue;
 	}
     if (oneSize < minSingleSize)
         {
 	warn("Warning: Sequence %s is only %d letters long (%d is the recommended minimum)",