fix without any effect
authorStefan Pluecken <stefan.pluecken@multimedia-labs.de>
Mon, 19 Dec 2005 00:40:18 +0000 (00:40 +0000)
committerStefan Pluecken <stefan.pluecken@multimedia-labs.de>
Mon, 19 Dec 2005 00:40:18 +0000 (00:40 +0000)
lib/python/Components/NimManager.py

index 933ebcf..c8b4adb 100644 (file)
@@ -128,6 +128,8 @@ class NimManager:
                        if (name == "sat"):
                                #print "found sat " + attrs.get('name',"") + " " + str(attrs.get('position',""))
                                tpos = attrs.get('position',"")
                        if (name == "sat"):
                                #print "found sat " + attrs.get('name',"") + " " + str(attrs.get('position',""))
                                tpos = attrs.get('position',"")
+                               if tpos < 0:
+                                       tpos = 3600 + tpos
                                tname = attrs.get('name',"")
                                self.satellites[tpos] = tname
                                self.satList.append( (tname, tpos) )
                                tname = attrs.get('name',"")
                                self.satellites[tpos] = tname
                                self.satList.append( (tname, tpos) )