Ver código fonte

Fix backward compatibility with more 'nan's than expected

Samuel Thibault 12 anos atrás
pai
commit
375d302250
1 arquivos alterados com 2 adições e 0 exclusões
  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')
 				break;
 			ungetc(n, f);
+			n = '\t';
 		}
 
 		/* No more values, take NAN */
@@ -1217,6 +1218,7 @@ static int load_bus_bandwidth_file_content(void)
 			if (n == '\n')
 				break;
 			ungetc(n, f);
+			n = '\t';
 		}
 
 		/* No more values, take NAN */