diff --git a/gstlal-inspiral/bin/gstlal_inspiral b/gstlal-inspiral/bin/gstlal_inspiral
index 85d85dc1d0cdd03d0d2962e6fc1211e12d6c7def..a8f6f1f82aa4c5e0718be91672d220b21a39422e 100755
--- a/gstlal-inspiral/bin/gstlal_inspiral
+++ b/gstlal-inspiral/bin/gstlal_inspiral
@@ -395,6 +395,8 @@ def parse_command_line():
 		# run scratch space so this *will* work properly
 		detectors.local_cache_list = hoftcache.cache_hoft(detectors, output_path = tempfile.gettempdir(), verbose = options.verbose)
 		for cacheentry in detectors.local_cache_list:
+			# Guarantee a lal cache complient file with only integer starts and durations.
+			cacheentry.segment = segments.segment( int(cacheentry.segment[0]), int(math.ceil(cacheentry.segment[1])) )
 			print >>f, str(cacheentry)
 		detectors.frame_cache = fname