mirror of
https://git.freebsd.org/ports.git
synced 2025-07-10 05:49:22 -04:00
The language is a superset of Python 3.4+ with additional shell primitives. xonsh (pronounced conch) is meant for the daily use of experts and novices alike. WWW: http://xon.sh PR: 220596 Submitted by: roberfern@gmail.com
11 lines
490 B
Python
11 lines
490 B
Python
--- xonsh/xoreutils/uptime.py.orig 2017-02-11 16:24:07 UTC
|
|
+++ xonsh/xoreutils/uptime.py
|
|
@@ -100,7 +100,7 @@ def _uptime_bsd():
|
|
return None
|
|
# Determine how much space we need for the response.
|
|
sz = ctypes.c_uint(0)
|
|
- xp.LIBC.sysctlbyname('kern.boottime', None, ctypes.byref(sz), None, 0)
|
|
+ xp.LIBC.sysctlbyname(b'kern.boottime', None, ctypes.byref(sz), None, 0)
|
|
if sz.value != struct.calcsize('@LL'):
|
|
# Unexpected, let's give up.
|
|
return None
|