Pages: 1
Hi, I was looking for a way to know the disk usage of photos and maybe the disk usage of cache files.
Offline
Hi msakik,
The disk usage of photos would be easy to implement:
SELECT sum(filesize) from piwigo_images;
But the disk usage of cache files is not easy. If you're running on unix-like Piwigo could :
exec('du -sh _data')
but that would't work on Windows.
Offline
Something may not be right.
I have run the sql from phpmyadmin and it returns
sum(filesize) = 12164796, that means 12 MB
When I run "du -csmh upload" it returns 4.5G
Am I doing something wrong?
Gallery folder is empty.
Offline
Ok, filesize is in KB so it is 12 GB. But still not compatible with du. Investigating more ....
Offline
digging more I found 3 photos where filesize is wrong at database, all of them uploaded on the same day. The record shows 2232876 Kb but in fact it is 2806 Kb. I have tried to reproduce with no success.
Offline
Video files? (I've seen filesize error with [extension by xbgmsharp] piwigo-videojs)
Offline
No, standard photos. I have attempted with standard and flash upload and using upload plugin I have already installed but no success to reproduce this. I wondering if this information (based on database query) of photo disk usage could not be shown on admin summary page.
Offline
Pages: 1