Skip to content
Snippets Groups Projects
Commit 33ef9aea authored by Moe Jette's avatar Moe Jette
Browse files

fix buffer size code

parent 0cd94783
No related branches found
No related tags found
No related merge requests found
......@@ -198,11 +198,12 @@ unpack_error:
static int _write_last_decay_ran(time_t last_ran)
{
static int high_buffer_size = (1024 * 1024);
/* Save high-water mark to avoid buffer growth with copies */
static int high_buffer_size = BUF_SIZE;
int error_code = SLURM_SUCCESS;
int state_fd;
char *old_file, *new_file, *state_file;
Buf buffer = init_buf(BUF_SIZE);
Buf buffer = init_buf(high_buffer_size);
pack_time(last_ran, buffer);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment