Skip to content

Commit

Permalink
remove extra counter debug
Browse files Browse the repository at this point in the history
  • Loading branch information
sflow committed Jan 10, 2020
1 parent c2030b0 commit c45aa92
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 19 deletions.
8 changes: 1 addition & 7 deletions src/Linux/mod_sonic.c
Original file line number Diff line number Diff line change
Expand Up @@ -770,12 +770,8 @@ extern "C" {
prt->ctrs.errs_in = db_getU32(c_val);
if(my_strequal(c_name->str, HSP_SONIC_FIELD_IFIN_DISCARDS))
prt->ctrs.drops_in = db_getU32(c_val);

if(my_strequal(c_name->str, HSP_SONIC_FIELD_IFIN_OCTETS)) {
myDebug(1, "sonic portCounters bytes_in reply: %s=%s", c_name->str, db_replyStr(c_val, db->replyBuf, YES));
if(my_strequal(c_name->str, HSP_SONIC_FIELD_IFIN_OCTETS))
prt->ctrs.bytes_in = db_getU64(c_val);
}

if(my_strequal(c_name->str, HSP_SONIC_FIELD_IFOUT_UCASTS))
prt->ctrs.pkts_out = db_getU32(c_val);
if(my_strequal(c_name->str, HSP_SONIC_FIELD_IFOUT_ERRORS))
Expand Down Expand Up @@ -803,8 +799,6 @@ extern "C" {
}
}

myDebug(1, "sonic getPortCounters(%s) bytes_in new: %"PRIu64, prt->portName, prt->ctrs.bytes_in);

// sumbit counters for deltas to be accumulated
SFLAdaptor *adaptor = adaptorByName(sp, prt->portName);
if(adaptor) {
Expand Down
12 changes: 0 additions & 12 deletions src/Linux/readNioCounters.c
Original file line number Diff line number Diff line change
Expand Up @@ -731,13 +731,6 @@ extern "C" {
// 64-bit byte counters
NIO_COMPUTE_DELTA(bytes_in);
NIO_COMPUTE_DELTA(bytes_out);

myDebug(1, "accumulateNioCounters(%s) bytes_in new: %"PRIu64" - old: %"PRIu64" = delta: %"PRIu64" (max=%"PRIu64")",
adaptor->deviceName,
ctrs->bytes_in,
nio->last_nio.bytes_in,
delta.bytes_in,
maxDeltaBytes);
}
else {
// for case where byte counters are 32-bit, we need
Expand Down Expand Up @@ -819,11 +812,6 @@ extern "C" {
ET_ACCUMULATE(nio, mcasts_out);
ET_ACCUMULATE(nio, bcasts_in);
ET_ACCUMULATE(nio, bcasts_out);

myDebug(1, "accumulateNioCounters(%s) bytes_in new_total: %"PRIu64,
adaptor->deviceName,
nio->nio.bytes_in);


if(nio->bond_slave
&& sp->synthesizeBondCounters) {
Expand Down

0 comments on commit c45aa92

Please sign in to comment.