I've a python script who display data in realtime(each second). I want to align these. I've try with pprint module but it doesnt works.
Example: My script displays this:
Server1 Sessions/s-----------------------Server2 Sessions/s
64 20
0 20
64 20
64 20
64 20
0 19
128 19
0 19
256 19
192 19
Is it possible to have this result?
Server1 Sessions/s----------------------Server2 Sessions/s
64 20
0 20
64 20
64 20
64 20
0 19
128 19
0 19
256 19
192 19
Each value are print every second. I haven't all of these in a list or a dictionary.
My code to display:
print("Server1 Sessions/s-----------------Server2 Sessions/s")
while i < self.timer:
print(" " + str(self.serverrqs()*int(self.nbpro)) + " "+ str(self.servernbrqs()))
i += 1
sleep(1)
Thanks in advance