Sharing the solution in case this is bothering anyone else:
Replace /usr/local/cwpsrv/var/services/users/cwp_theme/original/js/modules/mysql_manager.js.twig line 393 with:
$('#mysqldused').html(humanFileSize(dbtotal * 1024 * 1024));
No need to restart cwpsrv.