diff options
author | Dave Reisner <d@falconindy.com> | 2012-02-27 08:14:58 -0500 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2012-03-05 15:10:36 +0100 |
commit | a84f9b3c1db1afa8a69698a323425d67f1b9e45b (patch) | |
tree | 98c957a042495d5f1890c228ae6ce207b2942f69 /src/systemd-analyze | |
parent | 6a39419fe4e4ab7beb2412b6a52b5fd513509452 (diff) |
systemd-analyze: call os.uname() once
Uses a format string, which is dependent on python 2.6.
Diffstat (limited to 'src/systemd-analyze')
-rwxr-xr-x | src/systemd-analyze | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/systemd-analyze b/src/systemd-analyze index dad2ab8d1f..8148bfb832 100755 --- a/src/systemd-analyze +++ b/src/systemd-analyze @@ -172,7 +172,7 @@ elif sys.argv[1] == 'plot': osrel = osrel.strip('\"\n') break - banner = "%s %s (%s %s) %s" % (osrel, os.uname()[1], os.uname()[2], os.uname()[3], os.uname()[4]) + banner = "{} {} ({} {}) {}".format(osrel, *(os.uname()[1:5])) draw_text(context, 0, -15, banner, hcenter = 0, vcenter = 1) for x in range(0, finish_time/10000 + 100, 100): |