+ # Search for statistics on uploads/downloads in the time interval when the
+ # benchmark is running. We have the ending time. SPECsfs runs for the 10
+ # minutes prior, and uses the last 5 minuts of data. Let's use the time
+ # from 6 minutes prior to 1 minute prior, to give another 5-minute period
+ # with a bit of a buffer after in case timing is slightly off.
+ (t1, s1) = find_stats(statsdata, timestamp - 6*60)
+ (t2, s2) = find_stats(statsdata, timestamp - 1*60)
+ stat_delta = map(lambda x, y: y - x, s1, s2)
+