Why did you change the si_mysqlstats to print out the info? You probably just needed to copy the function and change mysql_stat to mysqli_stat.
It wouldn't display any of the information just simply changing the function to MySQLi, with the above code was the only way I could get the info to display...