From: Tobias Geerinckx-Rice Date: Sun, 16 Jun 2019 02:36:23 +0200 Subject: [PATCH] gnu: dstat: Skip devices without I/O. Taken verbatim from a pull request[0] that will never be merged. [0]: https://github.com/dagwieers/dstat/pull/164 From 0988589ea4ee092b285bd4049d56add5f61e3f69 Mon Sep 17 00:00:00 2001 From: Tobias Gruetzmacher Date: Fri, 15 Feb 2019 18:46:57 +0100 Subject: [PATCH] Skip devices without I/O Linux 4.18+ has added more fields to the diskstats proc file, so the original skip condition for devices without I/O didn't apply anymore. --- dstat | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dstat b/dstat index 9359965..5c2fb53 100755 --- a/dstat +++ b/dstat @@ -763,7 +763,7 @@ class dstat_disk(dstat): ret = [] for l in self.splitlines(): if len(l) < 13: continue - if l[3:] == ['0',] * 11: continue + if l[3:] == ['0',] * (len(l) - 3): continue name = l[2] ret.append(name) for item in objlist: ret.append(item) uix/refs/?id=6d51ebf63b505cd25d3ad95017c9b6d3162db148'>refslogtreecommitdiff
AgeCommit message (Expand)Author
2023-07-20gnu: glib: Disable hanging and failing tests for the Hurd....* gnu/packages/glib.scm (glib)[arguments]: When building for the Hurd, in phase `disable-failing-tests', neutralize 20 hanging tests, and 37 more failing tests. Janneke Nieuwenhuizen
2023-06-04gnu: gobject-introspection: Fix cross-compiling....* gnu/packages/glib.scm(gobject-introspection)[native-inputs]: When cross-compiling add python. Signed-off-by: Efraim Flashner <efraim@flashner.co.il> Zheng Junjie
2023-05-28gnu: Add glibmm-next....* gnu/packages/glib.scm (glibmm-next): New variable. Signed-off-by: Jonathan Brielmaier <jonathan.brielmaier@web.de> Saku Laesvuori
2023-04-22gnu: perl-glib: Update to 1.3293....* gnu/packages/glib.scm (perl-glib): Update to 1.3293. Efraim Flashner
2023-04-21gnu: libsigc++-2: Remove patch-docbook-xml phase....* gnu/packages/glib.scm (libsigc++-2) [arguments]: Remove patch-docbook-xml phase. Remove trailing #t. Use gexps. Maxim Cournoyer
2023-04-21gnu: libsigc++: Remove patch-docbook-xml phase....* gnu/packages/glib.scm (libsigc++) [arguments]: Remove patch-docbook-xml phase. Remove trailing #t. Use gexps. [native-inputs]: Remove labels. Maxim Cournoyer
2023-04-21gnu: glib-with-documentation: Remove patch-docbook-xml phase....* gnu/packages/glib.scm (glib-with-documentation) [arguments]: Remove patch-docbook-xml phase. [native-inputs]: Use modify-inputs. Remove labels. Maxim Cournoyer
2023-01-30Merge remote-tracking branch 'origin/master' into core-updates... Conflicts: doc/guix.texi gnu/local.mk gnu/packages/admin.scm gnu/packages/base.scm gnu/packages/chromium.scm gnu/packages/compression.scm gnu/packages/databases.scm gnu/packages/diffoscope.scm gnu/packages/freedesktop.scm gnu/packages/gnome.scm gnu/packages/gnupg.scm gnu/packages/guile.scm gnu/packages/inkscape.scm gnu/packages/llvm.scm gnu/packages/openldap.scm gnu/packages/pciutils.scm gnu/packages/ruby.scm gnu/packages/samba.scm gnu/packages/sqlite.scm gnu/packages/statistics.scm gnu/packages/syndication.scm gnu/packages/tex.scm gnu/packages/tls.scm gnu/packages/version-control.scm gnu/packages/xml.scm guix/build-system/copy.scm guix/scripts/home.scm Efraim Flashner