commit | 1eb81697b80e2e8576a7b55d182697db3096ad97 | [log] [tgz] |
---|---|---|
author | Robin Thellend <rthellend@google.com> | Wed Sep 03 10:48:24 2014 -0700 |
committer | Robin Thellend <rthellend@google.com> | Wed Sep 03 10:48:30 2014 -0700 |
tree | 2d7b2a1cc0a57b8c2d7a83de11fec79fd2f4608b | |
parent | aa955f7f9ccef69ab374ef8be311b975b21eefda [diff] |
veyron/lib/stats/counter: Fix delta value Before the counter history is full, use the last value as delta. This means that for the first minute, Value() and Delta1m() will be equal, for the first 10 minutes, Value() and Delta10m() will be equal, and the same for 1 hour. This is more intuitive than the previous behavior, which always subtracted the oldest value from the newest one. Change-Id: Ia154f073416e084d4780b8ecd00e49562113524f