@@ -27,7 +27,7 @@ typedef struct event_acum_for_actor {
2727
2828event_acum_for_actor * process_data (char * path_todir , char * path_tofile , char * filename , char * path_to_totals );
2929int get_nb_of_actors_in_dir (char * path );
30- int get_number (char * line );
30+ unsigned long long get_number (char * line );
3131void search_and_plot (char * path );
3232void struct_test (struct event_acum_for_actor * data );
3333int get_events_nb (char * path );
@@ -567,11 +567,13 @@ event_acum_for_actor* process_data (char* path_todir, char* path_tofile, char* f
567567 token = strtok (NULL ,";" );
568568 actor -> actions [current ]-> acumulator [i ]-> count += get_number (token );
569569 totals [i ] += get_number (token );
570+ //printf("adding %s (%llu).. totals[%d] = %llu\n", token, get_number(token), i, totals[i]);
570571 }
571572
572573 found = -1 ;
573574 }
574575
576+
575577 fclose (ofile );
576578
577579 //writing events per action
@@ -617,7 +619,7 @@ event_acum_for_actor* process_data (char* path_todir, char* path_tofile, char* f
617619 return actor ;
618620}
619621
620- int get_number (char * line ){ //removes quotes from string number
622+ unsigned long long get_number (char * line ){ //removes quotes from string number
621623 int lineLength = strlen (line );
622624 int j = 0 ;
623625 int i ;
0 commit comments