diff --git a/api.c b/api.c index a8a9508d..0bdfd9db 100644 --- a/api.c +++ b/api.c @@ -1555,7 +1555,8 @@ static void apiversion(struct io_data *io_data, __maybe_unused SOCKETTYPE c, __m message(io_data, MSG_VERSION, 0, NULL, isjson); io_open = io_add(io_data, isjson ? COMSTR JSON_VERSION : _VERSION COMSTR); - root = api_add_string(root, "SGMiner", VERSION, false); + root = api_add_string(root, "Miner", PACKAGE " " VERSION, false); + root = api_add_string(root, "CGMiner", VERSION, false); root = api_add_const(root, "API", APIVERSION, false); root = print_data(root, buf, isjson, false); diff --git a/doc/API b/doc/API index c39f6385..ada9dd16 100644 --- a/doc/API +++ b/doc/API @@ -145,8 +145,9 @@ The list of requests - a (*) means it requires privileged access - and replies: Request Reply Section Details ------- ------------- ------- - version VERSION SGMiner=sgminer, version - API=API| version + version VERSION Miner="sgminer " sgminer version + CGMiner=sgminer version + API=API version config CONFIG Some miner configuration information: GPU Count=N, <- the number of GPUs @@ -519,7 +520,7 @@ api-example.c - a 'C' program to access the API (with source code) miner.php - an example web page to access the API This includes buttons and inputs to attempt access to the privileged commands - See the end of this API-README for details of how to tune the display + See the end of this API readme for details of how to tune the display and also to use the option to display a multi-rig summary ---------- @@ -527,6 +528,13 @@ miner.php - an example web page to access the API Feature Changelog for external applications using the API: +API V + +Modified API commands: + 'version' - add 'Miner' + +---------- + API V3.1 (cgminer v3.12.1) Multiple report request command with '+' e.g. summary+devs