From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 14402139083 for ; Mon, 4 Dec 2017 00:06:27 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3E040E0F3F; Mon, 4 Dec 2017 00:06:26 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 1F0BEE0F98 for ; Mon, 4 Dec 2017 00:06:26 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 9802833BF01 for ; Mon, 4 Dec 2017 00:06:24 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 5B6E6AE72 for ; Mon, 4 Dec 2017 00:06:23 +0000 (UTC) From: "Andreas Sturmlechner" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andreas Sturmlechner" Message-ID: <1512345639.f39b259edd95b3ee52560310cd278e963395fab6.asturm@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: games-fps/ut2003-demo/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: games-fps/ut2003-demo/files/results.py X-VCS-Directories: games-fps/ut2003-demo/files/ X-VCS-Committer: asturm X-VCS-Committer-Name: Andreas Sturmlechner X-VCS-Revision: f39b259edd95b3ee52560310cd278e963395fab6 X-VCS-Branch: master Date: Mon, 4 Dec 2017 00:06:23 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 7f7b4152-af40-4f96-8ae5-53dfd6335617 X-Archives-Hash: 11c54e4d1291a79f484d485fb5bb85a2 commit: f39b259edd95b3ee52560310cd278e963395fab6 Author: Michael Mair-Keimberger gmail com> AuthorDate: Thu Nov 30 18:27:54 2017 +0000 Commit: Andreas Sturmlechner gentoo 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 , 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)