fixed compiler warning, upped avg libc
This commit is contained in:
parent
3274949c2f
commit
ad65112a38
4
config.h
4
config.h
@ -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
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user