Author Topic: User Panel > Mysql Manager not displaying unit correctly.  (Read 2489 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
User Panel > Mysql Manager not displaying unit correctly.
« on: September 10, 2021, 04:21:43 AM »
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.

Offline
*
Re: User Panel > Mysql Manager not displaying unit correctly.
« Reply #1 on: September 29, 2021, 11:05:05 AM »
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:
Code: [Select]
      $('#mysqldused').html(humanFileSize(dbtotal * 1024 * 1024));

No need to restart cwpsrv.