When user post pictures, the CPU usage goes "out of breath"... makin' sometimes other apps freeze 'til the upload/resize/thumb creation process is completed...
I've found a little correction witch helps :
<!-- BBCode Start --><TABLE BORDER=0 ALIGN=CENTER WIDTH=85%><TR><TD><font class="pn-sub">Code:</font><HR></TD></TR><TR><TD><FONT class="pn-sub"><PRE>
---- [ OPEN ] ----
gallery/platform/fs_win32.php
---- [ FIND ] ----
function fs_exec($cmd, &$results, &$status, $debugfile) {
// We can't redirect stderr with Windows. Hope that we won't need to.
return exec("cmd.exe /c $cmd", $results, $status);
}
---- [ INSIDE FIND ] ----
"cmd.exe /c $cmd"
---- [ REMPLACE BY ] ----
"cmd.exe /c start /LOW /WAIT /B $cmd"
</TD></TR></TABLE><!-- BBCode End -->
It makes the upload/resize/thumb creation process get a low priority...
That's all folks !
Posts: 3473
Thanks Tsunami, I'm sure windows users will like this.
Btw, it really should be in the Customization forum.
Posts: 3
Thanks ! I'll post it there too