Commit 446cf5ce authored by Leigh B. Stoller's avatar Leigh B. Stoller

Pick up default name of bossnode from config.h instead of hardwiring

boss name in.
parent 34267507
/*
* EMULAB-COPYRIGHT
* Copyright (c) 2000-2003 University of Utah and the Flux Group.
* Copyright (c) 2000-2004 University of Utah and the Flux Group.
* All rights reserved.
*/
#include "slothd.h"
#include "config.h"
SLOTHD_OPTS *opts;
SLOTHD_PARAMS *parms;
......@@ -175,7 +176,7 @@ int parse_args(int argc, char **argv) {
opts->agg_interval = DEF_AINTVL;
opts->debug = 0;
opts->port = SLOTHD_DEF_PORT;
opts->servname = SLOTHD_DEF_SERV;
opts->servname = BOSSNODE;
opts->load_thresh = DEF_LTHRSH;
opts->pkt_thresh = DEF_CTHRSH;
opts->cif_thresh = DEF_CTHRSH;
......
/*
* EMULAB-COPYRIGHT
* Copyright (c) 2000-2003 University of Utah and the Flux Group.
* Copyright (c) 2000-2004 University of Utah and the Flux Group.
* All rights reserved.
*/
......@@ -60,7 +60,6 @@
#define DEF_CTHRSH 1 /* At least 1 packet */
#define OFFSET_FRACTION 0.5
#define SLOTHD_DEF_SERV "boss"
#define SLOTHD_DEF_PORT 8509 /* XXX change */
#ifndef LOG_TESTBED
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment