Fix mac compile

main
Igor Canadi 11 years ago
parent 105c1e099b
commit 5ff6633588
  1. 6
      util/rate_limiter_test.cc

@ -7,6 +7,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.
#define __STDC_FORMAT_MACROS
#include <inttypes.h>
#include <limits>
#include "util/testharness.h"
#include "util/rate_limiter.h"
@ -63,8 +65,8 @@ TEST(RateLimiterTest, Rate) {
auto elapsed = env->NowMicros() - start;
double rate = arg.limiter->GetTotalBytesThrough()
* 1000000.0 / elapsed;
fprintf(stderr, "request size [1 - %ld], limit %ld KB/sec, "
"actual rate: %lf KB/sec, elapsed %.2lf seconds\n",
fprintf(stderr, "request size [1 - %" PRIi64 "], limit %" PRIi64
" KB/sec, actual rate: %lf KB/sec, elapsed %.2lf seconds\n",
arg.request_size - 1, target / 1024, rate / 1024,
elapsed / 1000000.0);

Loading…
Cancel
Save