统一缓存统计的定义,缓存查询/下载=get,上传=put。上次提交漏了一个gmt的判断。
This commit is contained in:
3
cache/src/tango_cache_pending.cpp
vendored
3
cache/src/tango_cache_pending.cpp
vendored
@@ -234,9 +234,8 @@ void get_response_freshness(const struct tfe_http_half *response, struct respons
|
||||
freshness->date = absolute_to_relative_time(field_value);;
|
||||
}
|
||||
field_value = tfe_http_std_field_read(response, TFE_HTTP_LAST_MODIFIED);
|
||||
if (field_value != NULL)
|
||||
if (field_value != NULL && is_standard_gmt_format(field_value))
|
||||
{
|
||||
assert(is_standard_gmt_format(field_value));
|
||||
freshness->last_modified = absolute_to_relative_time(field_value);;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user