diff options
Diffstat (limited to 'net/tools/flip_server/output_ordering.cc')
-rw-r--r-- | net/tools/flip_server/output_ordering.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/tools/flip_server/output_ordering.cc b/net/tools/flip_server/output_ordering.cc index 409ec0a..f5fb4cf 100644 --- a/net/tools/flip_server/output_ordering.cc +++ b/net/tools/flip_server/output_ordering.cc @@ -95,7 +95,7 @@ void OutputOrdering::AddToOutputOrder(const MemCacheIter& mci) { double think_time_in_s = server_think_time_in_s_; std::string x_server_latency = mci.file_data->headers->GetHeader("X-Server-Latency").as_string(); - if (x_server_latency.size() != 0) { + if (!x_server_latency.empty()) { char* endp; double tmp_think_time_in_s = strtod(x_server_latency.c_str(), &endp); if (endp != x_server_latency.c_str() + x_server_latency.size()) { |