Skip to content

Commit 4bd65ce

Browse files
committed
Change-Id: I0ea148fd03feb4fcd69ceaff59b059f786068769 Signed-off-by: panacotta <[email protected]>
1 parent 1ae8239 commit 4bd65ce

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

papiplot/src/plot.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ typedef struct event_acum_for_actor {
2727

2828
event_acum_for_actor* process_data (char* path_todir, char* path_tofile, char* filename, char* path_to_totals);
2929
int get_nb_of_actors_in_dir(char* path);
30-
int get_number(char *line);
30+
unsigned long long get_number(char *line);
3131
void search_and_plot(char *path);
3232
void struct_test(struct event_acum_for_actor *data);
3333
int 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

Comments
 (0)