From 145dd2951dbb6f886527f116c4c33df91a713159 Mon Sep 17 00:00:00 2001 From: Guannan Ma Date: Tue, 3 Jul 2018 13:58:56 +0800 Subject: [PATCH] Fix bug - getting CPU info --- cup/res/linux.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cup/res/linux.py b/cup/res/linux.py index 0b28bed..eba7d8c 100644 --- a/cup/res/linux.py +++ b/cup/res/linux.py @@ -84,7 +84,7 @@ def get_kernel_version(): """ versions = os.uname()[2] # version = versions[0: versions.find('_')] - return tuple([info for info in version.split('.')]) + return tuple([info for info in versions.split('.')]) @cup.decorators.needlinux