git-svn-id: http://svn.centreon.com/Plugins/Dev@2964 6bcd3966-0018-0410-8128-fd23d134de7e

This commit is contained in:
Julien Mathis 2007-08-10 07:42:06 +00:00
parent 31591de2b4
commit 2a1a37d84b
1 changed files with 2 additions and 2 deletions

View File

@ -322,7 +322,7 @@ if ($flg_created == 0){
## Count must round at 4294967296
##
if (($in_bits - $last_in_bits > 0) && defined($last_in_bits)) {
if (($in_bits - $last_in_bits != 0) && defined($last_in_bits)) {
my $total = 0;
if ($in_bits - $last_in_bits < 0){
$total = 4294967296 * 8 - $last_in_bits + $in_bits;
@ -336,7 +336,7 @@ if (($in_bits - $last_in_bits > 0) && defined($last_in_bits)) {
$in_traffic = 0;
}
if ($out_bits - $last_out_bits > 0 && defined($last_out_bits)) {
if ($out_bits - $last_out_bits != 0 && defined($last_out_bits)) {
my $total = 0;
if ($out_bits - $last_out_bits < 0){
$total = 4294967296 * 8 - $last_out_bits + $out_bits;