summaryrefslogtreecommitdiff
path: root/src/or/hibernate.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2017-05-15 11:46:55 -0400
committerNick Mathewson <nickm@torproject.org>2017-05-15 11:46:55 -0400
commit71a21256b0c06bcd0e32fd5d56edbed921aa70fa (patch)
tree76b5f40c3e17a334fea18942f93861b9710e8abc /src/or/hibernate.c
parent85f75d617c4f0c409bd9daca9d4b07ded53e5ede (diff)
parenta6514b8a20b7a6fafb72bafad1e9c98a8e35cdee (diff)
downloadtor-71a21256b0c06bcd0e32fd5d56edbed921aa70fa.tar.gz
tor-71a21256b0c06bcd0e32fd5d56edbed921aa70fa.zip
Merge branch 'bug22245_024'
Diffstat (limited to 'src/or/hibernate.c')
-rw-r--r--src/or/hibernate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/hibernate.c b/src/or/hibernate.c
index f2a4c71764..f54109fc90 100644
--- a/src/or/hibernate.c
+++ b/src/or/hibernate.c
@@ -331,7 +331,7 @@ edge_of_accounting_period_containing(time_t now, int get_end)
case UNIT_MONTH: {
/* If this is before the Nth, we want the Nth of last month. */
if (tm.tm_mday < cfg_start_day ||
- (tm.tm_mday < cfg_start_day && before)) {
+ (tm.tm_mday == cfg_start_day && before)) {
--tm.tm_mon;
}
/* Otherwise, the month is correct. */