public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: games-fps/ut2003-demo/files/
@ 2017-12-04  0:06 Andreas Sturmlechner
  0 siblings, 0 replies; only message in thread
From: Andreas Sturmlechner @ 2017-12-04  0:06 UTC (permalink / raw
  To: gentoo-commits

commit:     f39b259edd95b3ee52560310cd278e963395fab6
Author:     Michael Mair-Keimberger <m.mairkeimberger <AT> gmail <DOT> com>
AuthorDate: Thu Nov 30 18:27:54 2017 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Mon Dec  4 00:00:39 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f39b259e

games-fps/ut2003-demo: remove unused file

Closes: https://github.com/gentoo/gentoo/pull/6359

 games-fps/ut2003-demo/files/results.py | 61 ----------------------------------
 1 file changed, 61 deletions(-)

diff --git a/games-fps/ut2003-demo/files/results.py b/games-fps/ut2003-demo/files/results.py
deleted file mode 100644
index 3e626239129..00000000000
--- a/games-fps/ut2003-demo/files/results.py
+++ /dev/null
@@ -1,61 +0,0 @@
-#!/usr/bin/env python
-# Written by phoen][x <phoenix@gentoo.org>, Sep/19/2002
-# Modifications, enhancements or bugs? Mail me.
-import sys
-
-def help():
-	print "Usage"
-	print "  results.py logfile"
-
-def stats(data,mode):
-	print(
-""">> Score for %s
-MinDetail: %f (%d tests)
-MaxDetail: %f (%d tests)
-Average  : %f (%d tests)
-""" % (mode,data[0][0]/data[0][1],data[0][1],data[1][0]/data[1][1],data[1][1],
-       (data[0][0]+data[1][0])/(data[0][1]+data[1][1]),data[0][1]+data[1][1]))
-
-args = sys.argv[1:]
-if "--help" in args:
-	help()
-else:
-	if len(args):
-		file = args[0]
-	else:
-		import user
-		file = "%s/.ut2003/Benchmark/bench.log" % user.home
-	try:
-		myfile = open(file)
-		date = myfile.readline()
-		print(">> Results of the UT2003-demo benchmark")
-		print(">> created on %s" % date)
-
-		botmatch = ([0,0],[0,0])
-		flyby = ([0,0],[0,0])
-		
-		for line in myfile.readlines():
-			results = line.split()
-			category = results[0].split("-")[0]
-
-			if results[2] == "MinDetail":
-				detail = 0
-			elif results[2] == "MaxDetail":
-				detail = 1
-			else:
-				assert "Neither MinDetail nor MaxDetail?"
-				
-			if category == "botmatch":
-				botmatch[detail][0] += float(results[13])
-				botmatch[detail][1] += 1
-			elif category == "flyby":
-				flyby[detail][0] += float(results[13])
-				flyby[detail][1] += 1
-			else:
-				assert "Neither botmach nor flyby?"
-
-		stats(botmatch,"Botmatch")
-		stats(flyby,"FlyBy")
-		
-	except IOError:
-		print("Unable to open file %s" % file)


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2017-12-04  0:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-12-04  0:06 [gentoo-commits] repo/gentoo:master commit in: games-fps/ut2003-demo/files/ Andreas Sturmlechner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox