Index: src/procfs_byte_counter.cc |
diff --git a/src/procfs_byte_counter.cc b/src/procfs_byte_counter.cc |
index e22586c49ffea363b47eb460e7272e65740825a2..6186a13dc688a5d36a9c2afa578a41cf9c375c28 100644 |
--- a/src/procfs_byte_counter.cc |
+++ b/src/procfs_byte_counter.cc |
@@ -65,10 +65,20 @@ uint64 ProcfsByteCounter::GetRxBytes() const { |
return counter_rx_bytes_; |
} |
+void ProcfsByteCounter::SetRxBytes(uint64 rx_bytes) { |
+ DLOG(INFO) << interface_ << ": SetRxBytes: rx_bytes = " << rx_bytes; |
+ counter_rx_bytes_ = rx_bytes; |
+} |
+ |
uint64 ProcfsByteCounter::GetTxBytes() const { |
return counter_tx_bytes_; |
} |
+void ProcfsByteCounter::SetTxBytes(uint64 tx_bytes) { |
+ DLOG(INFO) << interface_ << ": SetTxBytes: tx_bytes = " << tx_bytes; |
+ counter_tx_bytes_ = tx_bytes; |
+} |
+ |
void ProcfsByteCounter::SetDelegate(ByteCounterDelegate *delegate) { |
DLOG(INFO) << interface_ << ": SetDelegate"; |
delegate_ = delegate; |