mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-22 18:50:08 +03:00
B #5219: High CPU consumption by onemonitord
This commit is contained in:
parent
f4c48b7724
commit
f9dcc26176
@ -641,7 +641,7 @@ string * one_util::zlib_decompress(const string& in, bool base64)
|
||||
|
||||
rc = inflate(&zs, Z_FINISH);
|
||||
|
||||
if ( rc != Z_STREAM_END && rc != Z_OK && rc != Z_BUF_ERROR )
|
||||
if ( rc != Z_STREAM_END && rc != Z_OK )
|
||||
{
|
||||
inflateEnd(&zs);
|
||||
|
||||
|
@ -173,7 +173,7 @@ int zlib_decompress(const std::string& in, std::string& out)
|
||||
|
||||
rc = inflate(&zs, Z_FINISH);
|
||||
|
||||
if ( rc != Z_STREAM_END && rc != Z_OK && rc != Z_BUF_ERROR )
|
||||
if ( rc != Z_STREAM_END && rc != Z_OK )
|
||||
{
|
||||
inflateEnd(&zs);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user