commit da7bdb6d393ef83ccfdb8bbf2cd9999b7cab8e5a
parent ed88c43ac3b3170c4628cc28557a7b25adfdd461
Author: klewer-martin <martin.cachari@gmail.com>
Date: Sat, 7 Aug 2021 04:08:50 -0300
Getting ready to deliver 'entrega_3'
Diffstat:
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/examples/input_gen.py b/examples/input_gen.py
@@ -2,7 +2,7 @@ from string import digits
from time import strftime, gmtime
from random import randint, choice
-LINES = 1500000
+LINES = 100000
# OUTPUT:
# ID_TRANSACCION, ID_USUARIO, FECHA, MONTO, NUMERO DE TRAJETA, DESCRIPCION
@@ -92,7 +92,7 @@ def generate_card(type):
def generate_file(max_lines):
id_transaction_base = 123400
id_user_base = 1
- id_user_max = 1000
+ id_user_max = 10000
amount_base = 1
amount_max = 100
for i in range(max_lines):
diff --git a/source/load.c b/source/load.c
@@ -17,7 +17,7 @@ status_t load_users_to_vector(ADT_Vector_t **v, cla_t cla)
return st;
parsed_lines = 0;
- users_created = 1;
+ users_created = 0;
while(fgets(buffer, IN_FILE_MAX_LEN, cla->fi)) {
if((st = user_create(&u1)) != OK) {
destroy_2darray(data, IN_FILE_FIELDS);