MRatWork Forum by Mustafa Ramadhan
Sawo Project - Kloxo-MR Discussions => Kloxo-MR Bugs and Requests => Topic started by: BigWeb.EU on 2017-01-25, 11:35:52
-
HI !
Kloxo Kloxo-MR 7.0.0.b-2017011101 (but same was and on earlier releases)
Clienty has "Total Disk Usage (MB)" of 20000MB
However it blocks the wrinting to disk much earlier. PLease check you have MB entered to Kloxo as it seems it calculates quotas wrong !
clients directory shows 212MB usage
in a Quata view of clients shows 2506MB (this is probably with backups)
but still limit is 20000 but no files can be written any more.
Image attached
-
1024 KB = 1 MB
-
Yes i know that 1024KB = 1MB, but this has nothing to do with the situation .
In limit sectionit says "Total Disk Usage (MB)" , which means 20000 i enter is ~20GB (which shows correcty on client limits list (19.53GB)
Space client uses for web - 212607KB (which is 212MB or 0.2GB)
Total space with bakcups client uses - 2.45GB (which is also displays corrcetly - 13% of 20GB)
But client cannot write any new files after >2GB space used .
Thus my assumption - even thoo in panel it shows sizes and limits correctly, but when it comes to real limiting , it looks like the limit is divided by 10 .
Please review my image carefully, hope you'll understand it ;)
-
All calculated using 1024 instead 1000. Also think about rounding value.
-
Hi Mustafa ,
I see you havent understood the bug correctly.
again - in CP when setting limits you have clear text to enter value in MB , thus entering 20000 makes limit 20GB . And CP shows all values good.
But reall limit is not 20GB but 2GB !!! (So it has nothing to do with dividing by 1000 or 1024 , theres somwhere "0" missing as difference is 10 times only, not 1000 or 1024.)
Im not sure where this limitation is set on linux side, but i can add more files for clients, but PHP cannot.
-
Yes, it's an old bug. Mustafa should use quotas instead of df. See linuxfslib.php:
if ($byteflag) {
return round($t * (1024), 1);
} else {
return round($t / (1024), 1);
}
}
-
Kloxo/Kloxo-MR using 'du' instead 'df'.
-
Kloxo/Kloxo-MR using 'du' instead 'df'.
Sorry I mean du -sc