head 1.2; access; symbols; locks; strict; comment @# @; 1.2 date 2017.03.20.18.06.07; author bouyer; state dead; branches; next 1.1; commitid UIkDeoKV4TqUGjKz; 1.1 date 2016.12.29.23.12.23; author wiz; state Exp; branches; next ; commitid rbn5RRsoW55uZVzz; desc @@ 1.2 log @Remove obsolete patches, they are obsolete since the switch to the 46 version @ text @$NetBSD: patch-ai,v 1.1 2016/12/29 23:12:23 wiz Exp $ --- python/xen/xend/osdep.py.orig 2011-04-01 12:03:13.000000000 +0200 +++ python/xen/xend/osdep.py 2011-04-01 13:49:45.000000000 +0200 @@@@ -94,8 +94,12 @@@@ return None cmd = "/sbin/sysctl " + cmdarg sysctloutput = commands.getoutput(cmd) + div = 1 + if label == 'current' and '=' not in sysctloutput: + sysctloutput = commands.getoutput( "/sbin/sysctl hw.physmem64") + div = 1024 (name, value) = sysctloutput.split('=') - return int(value) + return int(value) / div def _solaris_balloon_stat(label): """Returns the value for the named label, or None if an error occurs.""" @ 1.1 log @Fix build. Not sure if this makes sense, since it's for the removed xen 4.1. @ text @d1 1 a1 1 $NetBSD: patch-ai,v 1.1.1.1 2011/04/06 09:10:27 cegger Exp $ @