Browse Source

Fix a typo

Cédric Augonnet 14 years ago
parent
commit
d6bdf7f9ff
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/core/perfmodel/perfmodel.c

+ 1 - 1
src/core/perfmodel/perfmodel.c

@@ -177,7 +177,7 @@ double starpu_task_expected_power(struct starpu_task *task, enum starpu_perf_arc
 double starpu_data_expected_transfer_time(starpu_data_handle handle, unsigned memory_node, starpu_access_mode mode)
 {
 	/* If we don't need to read the content of the handle */
-	if (!mode & STARPU_R)
+	if (!(mode & STARPU_R))
 		return 0.0;
 	
 	if (_starpu_is_data_present_or_requested(handle, memory_node))