fixed compiler warning, upped avg libc

This commit is contained in:
Godmar Back 2020-07-15 23:30:08 -04:00
parent 3274949c2f
commit ad65112a38
2 changed files with 5 additions and 3 deletions

View File

@ -51,8 +51,10 @@
* This is a base line for a single-threaded implementation, without
* locking overhead, when clock() is used to time it.
* This is not meaningful for the multi-threaded implementation
*
* Updated Summer 2020 for new hardware
*/
#define AVG_LIBC_THRUPUT 21.5E6 /* 21,500 Kops/sec */
#define AVG_LIBC_THRUPUT 31701E3 /* 31,701 Kops/sec */
/*
* This constant determines the contributions of space utilization

View File

@ -643,7 +643,7 @@ static void clear_ranges(range_t **ranges)
*/
static trace_t *read_trace(char *tracedir, char *filename, int verbose)
{
char msg[MAXLINE];
char msg[MAXLINE + 100];
FILE *tracefile;
trace_t *trace;
char type[MAXLINE];
@ -665,7 +665,7 @@ static trace_t *read_trace(char *tracedir, char *filename, int verbose)
strcpy(path, tracedir);
strcat(path, filename);
if ((tracefile = fopen(path, "r")) == NULL) {
sprintf(msg, "Could not open %s in read_trace", path);
snprintf(msg, sizeof msg, "Could not open %s in read_trace", path);
unix_error(msg);
}
int rc;