summaryrefslogtreecommitdiff
path: root/cache
diff options
context:
space:
mode:
authorzhengchao <[email protected]>2018-10-21 11:08:44 +0800
committerzhengchao <[email protected]>2018-10-21 11:08:44 +0800
commitc94b267a6591e0618dd57b18de52dd86c505aa41 (patch)
treef06218c6bdf4c203ae90913ef1b92610b339cb70 /cache
parent09db5de25b33b77bc42efd2e42ff5f14de9c4c4e (diff)
统一缓存统计的定义,缓存查询/下载=get,上传=put。上次提交漏了一个gmt的判断。
Diffstat (limited to 'cache')
-rw-r--r--cache/src/tango_cache_pending.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/cache/src/tango_cache_pending.cpp b/cache/src/tango_cache_pending.cpp
index 22a42b3..30fe9db 100644
--- a/cache/src/tango_cache_pending.cpp
+++ b/cache/src/tango_cache_pending.cpp
@@ -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);;
}
}