]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/balancer: make weekday be compatible with C 26505/head
authorxie xingguo <xie.xingguo@zte.com.cn>
Tue, 19 Feb 2019 10:36:25 +0000 (18:36 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Tue, 19 Feb 2019 11:31:32 +0000 (19:31 +0800)
commitb9da0925490d4e9e964249c54e7775d9c76b1719
treef63462dc98ca841cb8b00d53553686c3e424225d
parent617d75bada2a15af16dd9afe6e50d5eede722227
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>
src/pybind/mgr/balancer/module.py