Registrations to Open-AudIT forums are now closed. To ask any new questions please visit Opmantek Community Questions.

Open-AudIT

What's on your network?
It is currently Sun Nov 17, 2019 9:09 pm

All times are UTC + 10 hours




Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: Statistics?
PostPosted: Sat Dec 09, 2006 10:52 am 
Offline
Newbie

Joined: Fri Dec 08, 2006 10:16 am
Posts: 5
Not sure if you guys know about this but I get the following whn I click anything under statistics menu. Any clues?

Code:
Fatal Error:

SELECT full_system_memory.system_memory, COUNT(*) count_item, round( 100 / ( SELECT count(*) FROM (select *, sum(memory_capacity) AS system_memory FROM memory GROUP BY memory_uuid ) as per_mem ) * COUNT( * ), ) AS percentage FROM (select *, sum(memory_capacity) AS system_memory FROM memory GROUP BY memory_uuid, memory_timestamp) AS full_system_memory, system WHERE memory_timestamp = system_timestamp and system_uuid = memory_uuid GROUP BY full_system_memory.system_memory ORDER BY count_item DESC

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') AS percentage FROM (select *, sum(memory_capacity)' at line 5





[/code]


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Sat Dec 09, 2006 1:24 pm 
Add this line to your include_config.php:
Code:
$round_to_decimal_places = '2';


Top
  
Reply with quote  
 Post subject:
PostPosted: Tue Dec 12, 2006 7:37 am 
Offline
Newbie

Joined: Fri Dec 08, 2006 10:16 am
Posts: 5
Did the trick!!!!

Thanks


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC + 10 hours


Who is online

Users browsing this forum: No registered users and 5 guests


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 post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group