Fix rounding of MNPS for displays

This commit is contained in:
AndyGrant committed 2020-02-28 02:25:27 -05:00
1 parent 684fd636ed
commit bc5740febf
1 file changed
+1 -1
+1 -1
View File
@@ -61,7 +61,7 @@ def getMachineStatus(username=None):
# Extract stat information from workers
return "{0} Machines ".format(len(machines)) + \
"{0} Threads ".format(sum([f.threads for f in machines])) + \
"{0} MNPS ".format(sum([f.threads * f.mnps for f in machines]))
"{0} MNPS ".format(round(sum([f.threads * f.mnps for f in machines]), 2))
def getPagedContent(content, page, pagelen, url):