Browse Source

Fix backward compatibility with more 'nan's than expected

Samuel Thibault 12 years ago
parent
commit
375d302250
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/core/perfmodel/perfmodel_bus.c

+ 2 - 0
src/core/perfmodel/perfmodel_bus.c

@@ -1004,6 +1004,7 @@ static int load_bus_latency_file_content(void)
 			if (n == '\n')
 			if (n == '\n')
 				break;
 				break;
 			ungetc(n, f);
 			ungetc(n, f);
+			n = '\t';
 		}
 		}
 
 
 		/* No more values, take NAN */
 		/* No more values, take NAN */
@@ -1217,6 +1218,7 @@ static int load_bus_bandwidth_file_content(void)
 			if (n == '\n')
 			if (n == '\n')
 				break;
 				break;
 			ungetc(n, f);
 			ungetc(n, f);
+			n = '\t';
 		}
 		}
 
 
 		/* No more values, take NAN */
 		/* No more values, take NAN */