forked from pool/cpuset
cc20caeba9
Add a trivial, but still important, fix from upstream. (bsc#1191418) OBS-URL: https://build.opensuse.org/request/show/931534 OBS-URL: https://build.opensuse.org/package/show/hardware/cpuset?expand=0&rev=42
24 lines
867 B
Diff
24 lines
867 B
Diff
From a4b6b275d0a43d2794ab9e82922d3431aeea9903 Mon Sep 17 00:00:00 2001
|
|
From: Markus <ekkwam@gmail.com>
|
|
Date: Tue, 25 Aug 2020 18:56:34 +0300
|
|
Subject: [PATCH] Fix invalid parentheses
|
|
|
|
Acked-by: Libor Pechacek <lpechacek@suse.com>
|
|
---
|
|
cpuset/commands/set.py | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/cpuset/commands/set.py b/cpuset/commands/set.py
|
|
index c71f37f..7d0d382 100644
|
|
--- a/cpuset/commands/set.py
|
|
+++ b/cpuset/commands/set.py
|
|
@@ -484,7 +484,7 @@ def set_details(name, indent=None, width=None, usehex=False):
|
|
if width != 0 and len(tst) > width:
|
|
target = width - len(out)
|
|
patha = set.path[:len(set.path)//2-3]
|
|
- pathb = set.path[len(set.path//2):]
|
|
+ pathb = set.path[len(set.path)//2:]
|
|
patha = patha[:target//2-3]
|
|
pathb = pathb[-target//2:]
|
|
out += patha + '...' + pathb
|