fix incorrect latitudes in cdn operator view
authorScott Baker <smbaker@gmail.com>
Tue, 15 Jul 2014 21:36:47 +0000 (14:36 -0700)
committerScott Baker <smbaker@gmail.com>
Tue, 15 Jul 2014 21:36:47 +0000 (14:36 -0700)
planetstack/core/dashboard/views/view_common.py

index dfc69ab..1c74f73 100644 (file)
@@ -142,7 +142,7 @@ def getCDNOperatorData(randomizeData = False, wait=True):
         hotness = max(0.0, ((cpu*RED_LOAD) - BLUE_LOAD)/(RED_LOAD-BLUE_LOAD))
 
         try:
-           lat=float(site.location.longitude)
+           lat=float(site.location.latitude)
            long=float(site.location.longitude)
         except:
            lat=0