pYrania Retired Dev
Joined: 27 Oct 2002 Posts: 650 Location: Cologne - Germany
|
Posted: Sun May 04, 2003 1:14 pm Post subject: Python Question |
|
|
first, I want to learn python, so I am currently working on a setiathome statistic script, just like setistats4linux, but written in python.
i hacked up some working lines, that output me
percent done and processing time and speed.
but now, i copied my script to another gentoo box and python is always getting an overflow:
Code: | $ ./pYseti
Traceback (most recent call last):
File "./pYseti", line 37, in ?
cpuh = string.zfill(int(cpu / 3600), 2)
OverflowError: float too large to convert |
Code: | cpu = float(setidata['cpu'])
cpuh = string.zfill(int(cpu / 3600), 2)
cpum = string.zfill(int((cpu % 3600) / 60), 2) |
at that point "cpu" would be something like 3287.528 _________________ Markus Nigbur |
|