From b97c4d157adfcbdaa0f7ede40bd68e54c0aaaef3 Mon Sep 17 00:00:00 2001 From: OpenGnSys Support Team Date: Tue, 12 Dec 2023 11:15:44 +0100 Subject: live: report image size when creating image add .size json field to report the real size of the image file. --- src/ogRest.py | 1 + 1 file changed, 1 insertion(+) (limited to 'src/ogRest.py') diff --git a/src/ogRest.py b/src/ogRest.py index 5a89d27..f567280 100644 --- a/src/ogRest.py +++ b/src/ogRest.py @@ -206,6 +206,7 @@ class ogThread(): json_body.add_element('compressor', image_info.compressor) json_body.add_element('filesystem', image_info.filesystem) json_body.add_element('datasize', datasize) + json_body.add_element('size', image_info.size) response = restResponse(ogResponses.OK, json_body, seq=client.seq) client.send(response.get()) -- cgit v1.2.3-18-g5258