Clear file cache

Cllear file cache button for the dashboard

← Back to Clear file cache Support

File size in PieChart widget does not display correctly...

Sorry for my English

https://content-na.drive.amazonaws.com/cdproxy/templink/ssGEc2KhgpmHGitxhgee-La6HMbyx1-gDRcBjTBk31sE0Xnc3?viewBox=1673

I known. I tried to solve this problem in the early development of the widget. But Pie Chart html control does not have enough functionality. At least I did not find anything about it in the documentation.
Since the main objective of the widget is cleaning the cache, I did not Fix this bug. If you have an idea how to fix it, I would be very grateful.

Maybe this solution is suitable:


private function format_size($size) {
    $mod = 1048576; // 1MB
    $size /= $mod;
    return round($size, 2) . ' MB';
}

С английским у меня не очень, надеюсь вы поймете :) Уж очень мне лень переводить свои мысли.
В случае с вашим решением все будет отображаться в Мб. Такой вариант я рассматривал, но он мне не подходил. Поэтому я смерился, что иногда график будет неправильным.
Раз уж вы подняли эту тему, я постараюсь найти время для исправления. В 1.0.4 все будет красиво :)

Problem has been fixed. Please, update plugin.

Я тоже думал решить эту проблему подобным образом, но не сообразил как реализовать в рамках этого виджета! ))) Хитро! Спасибо! Thanks!!

1-6 of 6