mirror of
https://github.com/OpenVPN/openvpn3.git
synced 2024-09-20 20:13:05 +02:00
341d983734
* gzip or lz4 supported for standard HTTP. * lz4 support for websocket. Signed-off-by: James Yonan <james@openvpn.net>
17 lines
382 B
C++
17 lines
382 B
C++
// OpenVPN
|
|
//
|
|
// Copyright (C) 2012-2017 OpenVPN Technologies, Inc.
|
|
// All rights reserved.
|
|
|
|
#pragma once
|
|
|
|
namespace openvpn {
|
|
inline void log_compress(const std::string prefix, const size_t orig_size, const size_t new_size)
|
|
{
|
|
OPENVPN_LOG(prefix
|
|
<< ' ' << orig_size
|
|
<< " -> " << new_size
|
|
<< " -- compression ratio: " << double(orig_size) / double(new_size));
|
|
}
|
|
}
|