File: adjust_bw.php

package info (click to toggle)
jffnms 0.8.3dfsg.1-2.1etch1
  • links: PTS
  • area: main
  • in suites: etch
  • size: 4,928 kB
  • ctags: 5,050
  • sloc: php: 19,981; sh: 266; makefile: 91; perl: 52
file content (16 lines) | stat: -rw-r--r-- 496 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<?
/* This file is part of JFFNMS
 * Copyright (C) <2002-2005> Javier Szyszlican <javier@szysz.com>
 * This program is licensed under the GNU GPL, full terms in the LICENSE file
 */
include ("../../conf/config.php");

$interfaces = interfaces_list();

foreach ($interfaces as $int){
    echo $int[id]." - ".$int[bandwidthin]." - ".$int[bandwidthout];
    if ($int[bandwidthin] > 2) 
	$result = interface_adjust_rrd($int[id],$int[bandwidthin],$int[bandwidthout]);
    echo "Result $result\n";
}
?>