fix bug in InMemory _retrieve

Summary: -end_time needs to be a number, not a unicode

Reviewers: usmanm, marcua

Reviewed By: usmanm

Differential Revision: http://phabricator.locu.com/D3034