Line 0
Link Here
|
|
|
1 |
--- xonsh/xoreutils/uptime.py.orig 2017-09-22 13:56:47.301837000 +0200 |
2 |
+++ xonsh/xoreutils/uptime.py 2017-09-22 13:57:29.448631000 +0200 |
3 |
@@ -100,7 +100,7 @@ |
4 |
return None |
5 |
# Determine how much space we need for the response. |
6 |
sz = ctypes.c_uint(0) |
7 |
- xp.LIBC.sysctlbyname('kern.boottime', None, ctypes.byref(sz), None, 0) |
8 |
+ xp.LIBC.sysctlbyname(b'kern.boottime', None, ctypes.byref(sz), None, 0) |
9 |
if sz.value != struct.calcsize('@LL'): |
10 |
# Unexpected, let's give up. |
11 |
return None |