cleanup: apply 10mins interval 05/232205/1
authorYunmi Ha <yunmi.ha@samsung.com>
Thu, 23 Apr 2020 09:10:11 +0000 (18:10 +0900)
committerHyotaek Shim <hyotaek.shim@samsung.com>
Wed, 29 Apr 2020 05:14:37 +0000 (05:14 +0000)
commit1a6b5864f4481fbdb1768e2fda926943bcaad9be
tree5cf39c0c5fc974bff3914f6de4df6805fb016c7b
parent7b4ac19e962d51f683ecec894e23599d3d363c01
cleanup: apply 10mins interval

- When requesting the same or lower level of cleanup again
(warning->warning, full->critical or critical->warning),
do it at a specific interval (10 minutes).

- When requesting the higher level of cleanup again
(warning->critical or critical->full),
do it immediately.

Change-Id: I87adc82a6c761394ff1d876b2729202204441279
Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
(cherry picked from commit cfe57770196510e1c3b9f064fc44e4ad1da373ba)
src/storage/cleanup.c