All other commands I've tried and used work perfectly but I cannot get the 'zero' command to work?
There is no reply section just the STATUS section
stating that the zero, and optional summary, was done
If Which='all', all normal cgminer and API statistics will be zeroed other than the numbers displayed by the usbstats and stats commands
If Which='bestshare', only the 'Best Share' values
are zeroed for each pool and the global 'Best Share'
The true/false option determines if a full summary is shown on the cgminer display like is normally displayed on exit.
How do I specify what to zero using the 'which' parameter?
I've tried:
cgminer('zero|which=all',false);
cgminer('zero|which="all"',false);
cgminer('zero|all',false);
cgminer('zero',which=all,false);
cgminer('zero',all,false);
and probably all other variants of that.. From what I can make out, all other commands only have one parameter and work fine, like restart or switchpool etc..
Any help would be greatly appreciated!
EDIT: I should mention I'm using MinePeon on the Raspberry Pi and the 'cgminer' function above is this:
$command = array (
"command" => $command,
"parameter" => $parameter
);
$jsonCmd = json_encode($command);
$host = "127.0.0.1";
$port = 4028;
$client = @stream_socket_client("tcp://$host:$port", $errno, $errorMessage);
if ($client === false) {
return false;
}
fwrite($client, $jsonCmd);
$response = stream_get_contents($client);
fclose($client);
$response = preg_replace("/[^[:alnum:][:punct:]]/","",$response);
$response = json_decode($response, true);
return $response;