]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/balancer: make weekday be compatible with C 26499/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:52:51 +0000 (12:52 +0700)
commitf4d945c1204088b46b0628fe70b21162227015cd
tree339081a6153624c9787a3e1d4e644efa701377fa
parentb3a29821be26bd7d4115a59304433058759671fe
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