RPC command getmininginfo showing right genproclimit

With tag version v0.9.0, getmininginfo was showing always genproclimit -1.
$ ./bitcoind setgenerate true 1
$ ./bitcoind getmininginfo
{
 ...
    "genproclimit" : -1,
...
}

with this patch, now it is showing the right value:
$ ./bitcoind setgenerate true 1
$ ./bitcoind getmininginfo
{
 ...
    "genproclimit" : 1,
...
}