mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-24 00:00:11 +02:00
Fix condition for updating the current date buffer (#230)
This commit is contained in:
committed by
Carl Lerche
parent
923a80e098
commit
d1046db735
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user