X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=showlatlon.py;fp=showlatlon.py;h=af01bd7246b1d9f890af55ae96a1703d0e8c2e95;hb=6df6b8cf9b9a5e78f4f68445e1b2dabc2ae272e6;hp=10367e43bcb8a05b01381d2120074efd3bf6f81f;hpb=49ee09c165844d76f9d38d3d0cb345338a154a18;p=monitor.git diff --git a/showlatlon.py b/showlatlon.py index 10367e4..af01bd7 100755 --- a/showlatlon.py +++ b/showlatlon.py @@ -29,11 +29,11 @@ def gethardwarequality(nodename, fb): for field in ['cpuspeed', 'memsize', 'disksize']: if field not in cstat: cstat[field] = "null" - if cstat['cpuspeed'] != "null" and float(cstat['cpuspeed']) < 2.4: + if cstat['cpuspeed'] != "null" and float(cstat['cpuspeed']) < 2.2: return "BAD" # "cpu_slow", - if cstat['memsize'] != "null" and float(cstat['memsize']) < 2.9: + if cstat['memsize'] != "null" and float(cstat['memsize']) < 2.8: return "BAD" # "mem_small", - if cstat['disksize'] != "null" and float(cstat['disksize']) < 320.0: + if cstat['disksize'] != "null" and float(cstat['disksize']) < 300.0: return "BAD" # "disk_small", if cstat['disksize'] == "null" and \ @@ -42,9 +42,9 @@ def gethardwarequality(nodename, fb): return "N/A" try: - if float(cstat['cpuspeed']) >= 2.4 and \ - float(cstat['memsize']) >= 2.9 and \ - (cstat['disksize'] == "null" or float(cstat['disksize']) >= 320.0): + if float(cstat['cpuspeed']) >= 2.2 and \ + float(cstat['memsize']) >= 2.8 and \ + (cstat['disksize'] == "null" or float(cstat['disksize']) >= 300.0): return "A-OK" except: print cstat