SYSTEM WARNING: 'date_default_timezone_get(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone.' in '/usr/share/mantis/www/core.php' line 264
Anonymous | Login | 2022-05-19 22:41 UTC | ![]() |
Main | My View | View Issues | Change Log | Roadmap |
View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
0003351 | Endian Firewall | Other Scripts | public | 2010-12-02 17:15 | 2010-12-02 17:16 | ||||
Reporter | max-endian | ||||||||
Assigned To | max-endian | ||||||||
Priority | normal | Severity | minor | Reproducibility | always | ||||
Status | resolved | Resolution | fixed | ||||||
Platform | OS | OS Version | |||||||
Product Version | |||||||||
Target Version | Fixed in Version | ||||||||
Summary | 0003351: The function getSpareMemory works wrong | ||||||||
Description | The function getSpareMemory in the file /var/efw/header.pl calculates a wrong resusalt. | ||||||||
Tags | No tags attached. | ||||||||
Attached Files | |||||||||
![]() |
|
(0005283) max-endian (developer) 2010-12-02 17:16 |
Replace the function by this one: sub getSpareMemory() { my $swapfree = 0; my $used = 0; foreach my $line (`/usr/bin/free`) { if ($line =~ /cache:\s+(\d+)\s+(\d+)$/) { $memfree = $2; } if ($line =~ /Swap:\s+(\d+)\s+(\d+)\s+(\d+)$/) { $swapfree = $3; } } return ($swapfree+$memfree)*1024; } |
![]() |
|||
Date Modified | Username | Field | Change |
2010-12-02 17:15 | max-endian | New Issue | |
2010-12-02 17:16 | max-endian | Note Added: 0005283 | |
2010-12-02 17:16 | max-endian | Status | new => resolved |
2010-12-02 17:16 | max-endian | Resolution | open => fixed |
2010-12-02 17:16 | max-endian | Assigned To | => max-endian |
Copyright © 2000 - 2012 MantisBT Group |