bitcoind getmininginfo says hashespersec is 0
The hashespersec field reports the speed of the built-in miner. It does not (and can't accurately) report the hashing power connected to it via the getwork or getblocktemplate interfaces.