1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-22 20:44:19 +00:00

pool: display URL instead of "Pool N" if no poolname provided.

This works since get_pool_name() in pool.c checks if an empty string is
provided, and uses the URL instead if so.
This commit is contained in:
Noel Maersk 2014-02-28 23:53:09 +02:00
parent 4059780d01
commit 428061e416

View File

@ -528,7 +528,7 @@ struct pool *add_pool(void)
/* Default pool name */
char buf[32];
sprintf(buf, "Pool %d", pool->pool_no);
sprintf(buf, "", pool->pool_no);
pool->poolname = strdup(buf);
pools = (struct pool **)realloc(pools, sizeof(struct pool *) * (total_pools + 2));