Procházet zdrojové kódy

tools: make use of xrange() instead of range() in calc_stats()

This only affects starpu_trace_state_stats.py.
Samuel Pitoiset před 9 roky
rodič
revize
25e5a1e3b4
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      tools/starpu_trace_state_stats.py

+ 1 - 1
tools/starpu_trace_state_stats.py

@@ -82,7 +82,7 @@ class Worker():
 	    is_allowed = not len(start_profiling_times)
 
             # Check if the event is inbetween start/stop profiling events
-            for t in range(len(start_profiling_times)):
+            for t in xrange(len(start_profiling_times)):
 		if (curr_event._start_time > start_profiling_times[t] and
 		    curr_event._start_time < stop_profiling_times[t]):
 		    is_allowed = True