write_redis: fix "max_set_duration" deletes unexpected data
authorToshiaki Takahashi <takahashi.tsc@ncos.nec.co.jp>
Tue, 15 May 2018 07:19:25 +0000 (07:19 +0000)
committerToshiaki Takahashi <takahashi.tsc@ncos.nec.co.jp>
Tue, 15 May 2018 08:37:42 +0000 (08:37 +0000)
commita3bafd5a952b5cfacacb03f9fb2ac5988d1e39fb
tree73a32141e6cb1444c1224a9279b19fea85ef5a4b
parentb4a2f3eb563332d43a25791ee7856cb0817ae95e
write_redis: fix "max_set_duration" deletes unexpected data

The calculation result of the data range
when "max_set_duration" is used is incorrect,
because the (char []) type, i.e. string, variable "time" is used
as the number for the time calculation.
As a result, data in the wrong range is deleted.
With this change, the correct data is deleted
by calculation using a double type value.
src/write_redis.c