aboutsummaryrefslogtreecommitdiffstats
path: root/debian/patches/0016-fix-div-by-zero-zfscompressedarcmeter.patch
diff options
context:
space:
mode:
authorDaniel Lange <DLange@git.local>2021-09-21 08:54:37 +0200
committerDaniel Lange <DLange@git.local>2021-09-21 08:56:02 +0200
commit4582ae87a0a0675d0756b93dcda052c533cd2c96 (patch)
tree8b33f325e3347c5eea8f53fd74d5efb1ca8a556d /debian/patches/0016-fix-div-by-zero-zfscompressedarcmeter.patch
parenta2b6942d15d220bb0518003d4f818a922d88e9f9 (diff)
downloaddebian_htop-4582ae87a0a0675d0756b93dcda052c533cd2c96.tar.gz
debian_htop-4582ae87a0a0675d0756b93dcda052c533cd2c96.tar.bz2
debian_htop-4582ae87a0a0675d0756b93dcda052c533cd2c96.zip
Drop Debian patches accumulated over the 3.0.x-x cycle
Diffstat (limited to 'debian/patches/0016-fix-div-by-zero-zfscompressedarcmeter.patch')
-rw-r--r--debian/patches/0016-fix-div-by-zero-zfscompressedarcmeter.patch25
1 files changed, 0 insertions, 25 deletions
diff --git a/debian/patches/0016-fix-div-by-zero-zfscompressedarcmeter.patch b/debian/patches/0016-fix-div-by-zero-zfscompressedarcmeter.patch
deleted file mode 100644
index a548469..0000000
--- a/debian/patches/0016-fix-div-by-zero-zfscompressedarcmeter.patch
+++ /dev/null
@@ -1,25 +0,0 @@
-From 099dab88be5a7a1c9207e7bc7116618b7108f851 Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?Christian=20G=C3=B6ttsche?= <cgzones@googlemail.com>
-Date: Thu, 22 Apr 2021 17:12:02 +0200
-Subject: [PATCH] ZfsCompressedArcMeter: avoid division by 0
-
-On systems not using ZFS `this->values[0]` is zero.
----
- zfs/ZfsCompressedArcMeter.c | 6 +++++-
- 1 file changed, 5 insertions(+), 1 deletion(-)
-
---- a/zfs/ZfsCompressedArcMeter.c
-+++ b/zfs/ZfsCompressedArcMeter.c
-@@ -33,7 +33,11 @@
- }
-
- static void ZfsCompressedArcMeter_printRatioString(const Meter* this, char* buffer, size_t size) {
-- xSnprintf(buffer, size, "%.2f:1", this->total / this->values[0]);
-+ if (this->values[0] > 0) {
-+ xSnprintf(buffer, size, "%.2f:1", this->total / this->values[0]);
-+ } else {
-+ xSnprintf(buffer, size, "N/A");
-+ }
- }
-
- static void ZfsCompressedArcMeter_updateValues(Meter* this, char* buffer, size_t size) {

© 2014-2024 Faster IT GmbH | imprint | privacy policy