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 Fri Mar 29, 2024 9:47 am

All times are UTC + 10 hours




Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
PostPosted: Wed Aug 26, 2009 12:49 am 
Offline
Contributor

Joined: Fri Sep 28, 2007 12:07 am
Posts: 189
Hi,

I had a request from by boss concerning changing the index page display of free space to a percentage rather than fixed size. It makes sense so I did it.

Changes:
File: index.php
Line: 105
[code]DisplaySection('f4',__("Partition free space less than ").$partition_free_space.__(" %"),'PartitionUsage','Partitions');[/code]

File: index_data.php
Line: 367
[code]$sql .= "WHERE round(((par.partition_free_space/par.partition_size) * 100),1) < '$partition_free_space' AND sys.system_uuid = par.partition_uuid AND par.partition_timestamp = sys.system_timestamp ";[/code]

One place I am not sure where to make the change is in the admin config page. I can enter a number, let's say "10", and it works fine. there are two places in the admin page that would need updating:

1. The form changed from MB to %
2. The default value for that field changed from "500" to "10"

Hope everyone finds it useful.

Jason

_________________
OA Deployment:
Windows 2003 with XAMPP install
80 Windows Servers
250 Windows workstations (mixed XP and 2000)
5 MACs
Multiple printers, switches, routers, firewalls, and other servers (ESX, AIX etc.)


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.  [ 1 post ] 

All times are UTC + 10 hours


Who is online

Users browsing this forum: No registered users and 2 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