User Panel > Mysql Manager not displaying unit correctly.

Started by jamesfu, September 10, 2021, 04:21:43 AM

Previous topic - Next topic

jamesfu

Hi, new user here! Just set up an instance of CWP, and I'm loving it so far.

I noticed in User Panel > Mysql Manager that the unit for Disk Usage is displayed ambiguously. https://www.dropbox.com/s/gbma9yv1u0ba4rm/Screenshot%20from%202021-09-10%2012-06-06.png?dl=0

Can I suggest an appropriate unit be added for the numerator? Thanks.

jamesfu

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.