3d79b89141253b72477ac9276f8acfc125efc7c6
max
  Thu Apr 20 02:54:47 2023 -0700
#Preview2 week - bugs introduced now will need a build patch to fix
small tweaks to dumpToLog feature, refs #30591

diff --git src/hg/hgTracks/hgTracks.c src/hg/hgTracks/hgTracks.c
index 3798e19..96018ad 100644
--- src/hg/hgTracks/hgTracks.c
+++ src/hg/hgTracks/hgTracks.c
@@ -9841,33 +9841,33 @@
     else
 	{
 	// erase the highlight cartvar if it has no overlap with the new virt chrom
 	cartRemove(cart, "highlight");
 	}
     }
 }
 
 static void setupTimeWarning()
 /* add javascript that outputs a warning message if page takes too long to load */
 {
 char *maxTimeStr = cfgOption("warnSeconds");
 if (!maxTimeStr)
     return;
 
-int maxTime = atoi(maxTimeStr);
+double maxTime = atof(maxTimeStr);
 struct dyString *dy = dyStringNew(150);
-dyStringPrintf(dy, "$(document).ready( function() { hgtWarnTiming(%d)});\n", maxTime);
+dyStringPrintf(dy, "$(document).ready( function() { hgtWarnTiming(%f)});\n", maxTime);
 jsInline(dy->string);
 dyStringFree(&dy);
 }
 
 
 void tracksDisplay()
 /* Put up main tracks display. This routine handles zooming and
  * scrolling. */
 {
 char titleVar[256];
 char *oldPosition = cartUsualString(cart, "oldPosition", "");
 boolean findNearest = cartUsualBoolean(cart, "findNearest", FALSE);
 cartRemove(cart, "findNearest");
 
 boolean positionIsVirt = FALSE;