CPU Release on Gallery for Win32...

Tsunami

Joined: 2003-04-16
Posts: 3
Posted: Wed, 2003-04-16 10:53

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, &amp;$results, &amp;$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 !

 
joan
joan's picture

Joined: 2002-10-21
Posts: 3473
Posted: Wed, 2003-04-16 10:59

Thanks Tsunami, I'm sure windows users will like this.

Btw, it really should be in the Customization forum.

 
Tsunami

Joined: 2003-04-16
Posts: 3
Posted: Wed, 2003-04-16 11:07

Thanks ! I'll post it there too