Modem-Help Forum Index Main Site
Modems
Downloads
Chips, Chipsets
Help [ Old Help ]
SearchAbuseAggregatorEFG
Modem-Help
Dedicated help on Modems
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Conteg :: Content Negotiation PHP Class :: v0.12.2 released

 
Post new topic   Reply to topic    Modem-Help Forum Index -> Site Info + Diary
View previous topic :: View next topic  
Author Message
Alex Kemp
Site Admin


Joined: 30 Jun 2004
Posts: 6049
Location: Nottingham, England

PostPosted: Fri Aug 18, 2006 12:58 am    Post subject: Conteg :: Content Negotiation PHP Class :: v0.12.2 released Reply with quote

Conteg.include v0.10 PHP Class : Documentation : Overview
Conteg :: Content Negotiation PHP Class :: v0.12.1 released
Conteg downloads (members only)

Recently, I was running a batch file on the server which updates the Downloads files into the site Database. At the same time I was working on the next site update (coming soon) and, on checking the page, noticed that the compression ratio was 0 (no compression). Which meant that the site load was so high that the dynamic-compression employed (a default part of the Conteg Class) had lowered the compression ratio to zero, effectively switching it off. On this 4-cpu machine that did not make sense.

After some checking via PuTTY on the server, and some head-scratching, and glancing at the code, the lightbulb above my head lit up - the function used (_loadAvgLinux()) did not take any account of the number of cpus in the system, which effectively penalises SMP boxes like this one.

Easy to fix. I have taken the easy route out, and put in a variable ($_num_cpu) to state the number of CPUs in the system. That means that it needs changing (possibly) manually, but has the upside of very little code-time, either by me or by the script during operation.

It will be on the site shortly.

2009-04-16 Edited by AK
Edit Reason: Fixed URLs

_________________
Alex Kemp
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Modem-Help Forum Index -> Site Info + Diary All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2007 phpBB Group