Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(404)

Unified Diff: src/procfs_byte_counter.cc

Issue 6250171: cashew: reset local counter on plan transition (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/cashew.git@master
Patch Set: ers review comments Created 9 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/procfs_byte_counter.h ('k') | src/service_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « src/procfs_byte_counter.h ('k') | src/service_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698