mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-26 23:24:09 +02:00
Fixed DynamicObject::DumpObjects().
This commit is contained in:
parent
28e58df3aa
commit
ea115a2c8c
@ -362,17 +362,6 @@ void DynamicObject::DumpObjects(const String& filename)
|
||||
String json = value.Serialize();
|
||||
|
||||
NetString::WriteStringToStream(sfp, json);
|
||||
|
||||
size_t count;
|
||||
while ((count = sfp->GetAvailableBytes()) > 0) {
|
||||
char buffer[1024];
|
||||
|
||||
if (count > sizeof(buffer))
|
||||
count = sizeof(buffer);
|
||||
|
||||
sfp->Read(buffer, count);
|
||||
fp.write(buffer, count);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user