]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mgr/balancer: make weekday be compatible with C 26501/head
authorxie xingguo <xie.xingguo@zte.com.cn>
Tue, 19 Feb 2019 10:36:25 +0000 (18:36 +0800)
committerKonstantin Shalygin <k0ste@k0ste.ru>
Sat, 23 Feb 2019 05:50:07 +0000 (12:50 +0700)
commita4d0f5e7c4e42e97feb19222c195dee8f4dbda7a
treeb715ea561fb239752cb0e6628d5d213c77dbdce9
parent4afc5373512dd937beb231db8084f03bf99b3d50
mgr/balancer: make weekday be compatible with C

The __desc__ field of **begin[end]_weekend** suggests
sunday is the prevailing start of the week, whereas the
Python implementation says no.

See https://stackoverflow.com/questions/21045569/why-is-pythons-weekday-different-from-tm-wday-in-c

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
(cherry picked from commit b9da0925490d4e9e964249c54e7775d9c76b1719)
src/pybind/mgr/balancer/module.py