From d1046db7353aa227a70f8b7f6e5465c674dc2572 Mon Sep 17 00:00:00 2001 From: Hiroaki Nakamura Date: Fri, 16 Mar 2018 01:29:55 +0900 Subject: [PATCH] Fix condition for updating the current date buffer (#230) --- examples/tinyhttp.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/tinyhttp.rs b/examples/tinyhttp.rs index eaa40e6f1..9bf3f27a5 100644 --- a/examples/tinyhttp.rs +++ b/examples/tinyhttp.rs @@ -274,7 +274,7 @@ mod date { LAST.with(|cache| { let mut cache = cache.borrow_mut(); let now = time::get_time(); - if now > cache.next_update { + if now >= cache.next_update { cache.update(now); } f.write_str(cache.buffer())