linux-rt-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 01/10] rteval: Use f-strings in rtevalclient.py
@ 2023-06-01 19:29 Anubhav Shelat
  2023-06-01 19:29 ` [PATCH 02/10] rteval: Use f-strings in rtevalConfig Anubhav Shelat
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: Anubhav Shelat @ 2023-06-01 19:29 UTC (permalink / raw)
  To: linux-rt-users; +Cc: Anubhav Shelat

Signed-off-by: Anubhav Shelat <ashelat@redhat.com>

---
 rteval/rtevalclient.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/rteval/rtevalclient.py b/rteval/rtevalclient.py
index 26c953005326..7ff7d2700cfc 100644
--- a/rteval/rtevalclient.py
+++ b/rteval/rtevalclient.py
@@ -61,7 +61,7 @@ class rtevalclient:
         cmpr = compr.compress(fbuf.getvalue())
         data = base64.b64encode(cmpr + compr.flush())
         ret = self.srv.SendReport(self.hostname, data)
-        print("rtevalclient::SendReport() - Sent %i bytes (XML document length: %i bytes, compression ratio: %.02f%%)" % (len(data), doclen, (1-(float(len(data)) / float(doclen)))*100 ))
+        print(f"rtevalclient::SendReport() - Sent {len(data)} bytes (XML document length: {doclen} bytes, compression ratio: {(1-(float(len(data)) / float(doclen)))*100}:.2f)")
         return ret
 
     def SendDataAsFile(self, fname, data, decompr = False):
-- 
2.31.1


^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2023-06-01 19:32 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-01 19:29 [PATCH 01/10] rteval: Use f-strings in rtevalclient.py Anubhav Shelat
2023-06-01 19:29 ` [PATCH 02/10] rteval: Use f-strings in rtevalConfig Anubhav Shelat
2023-06-01 19:29 ` [PATCH 03/10] rteval: Use f-strings in cputopology Anubhav Shelat
2023-06-01 19:29 ` [PATCH 04/10] rteval: Use f-strings in kernel.py Anubhav Shelat
2023-06-01 19:29 ` [PATCH 05/10] rteval: Use f-strings in memory.py Anubhav Shelat
2023-06-01 19:29 ` [PATCH 06/10] rteval: Use f-strings in osinfo Anubhav Shelat
2023-06-01 19:29 ` [PATCH 07/10] rteval: Use f-strings in services.py Anubhav Shelat
2023-06-01 19:29 ` [PATCH 08/10] rteval: Use f-strings in tools.py Anubhav Shelat
2023-06-01 19:29 ` [PATCH 09/10] Added code to check if the proc/net/if_inet6 file exists while loading IPv6 addresses in the IPv6Addresses class Anubhav Shelat
2023-06-01 19:29 ` [PATCH 10/10] rteval: Use f-strings in __init__.py Anubhav Shelat

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).