summaryrefslogtreecommitdiffstats
path: root/examples/tinyhttp.rs
diff options
context:
space:
mode:
authorHiroaki Nakamura <hnakamur@users.noreply.github.com>2018-03-16 01:29:55 +0900
committerCarl Lerche <me@carllerche.com>2018-03-15 09:29:55 -0700
commitd1046db7353aa227a70f8b7f6e5465c674dc2572 (patch)
tree273a4adfdebef00b3f49e422bf898b5fff8827cf /examples/tinyhttp.rs
parent923a80e098d4d8355c65d3c80e5789ea0cbded95 (diff)
Fix condition for updating the current date buffer (#230)
Diffstat (limited to 'examples/tinyhttp.rs')
-rw-r--r--examples/tinyhttp.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/tinyhttp.rs b/examples/tinyhttp.rs
index eaa40e6f..9bf3f27a 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())