aboutsummaryrefslogtreecommitdiffstats
path: root/freebsd/Platform.c
diff options
context:
space:
mode:
authorDaniel Lange <DLange@git.local>2021-10-15 09:03:04 +0200
committerDaniel Lange <DLange@git.local>2021-10-15 09:03:04 +0200
commit30ce3b4c264c51c98f280e88e23792ff7deb2317 (patch)
treef9730c54ab9d86ce57ce636f2fba1fdc03f46072 /freebsd/Platform.c
parent69f439eff387a6ecb52734e400b297a3c85f2285 (diff)
downloaddebian_htop-30ce3b4c264c51c98f280e88e23792ff7deb2317.tar.gz
debian_htop-30ce3b4c264c51c98f280e88e23792ff7deb2317.tar.bz2
debian_htop-30ce3b4c264c51c98f280e88e23792ff7deb2317.zip
New upstream version 3.1.1upstream/3.1.1
Diffstat (limited to 'freebsd/Platform.c')
-rw-r--r--freebsd/Platform.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/freebsd/Platform.c b/freebsd/Platform.c
index 527a455..9c88b40 100644
--- a/freebsd/Platform.c
+++ b/freebsd/Platform.c
@@ -1,7 +1,7 @@
/*
htop - freebsd/Platform.c
(C) 2014 Hisham H. Muhammad
-Released under the GNU GPLv2, see the COPYING file
+Released under the GNU GPLv2+, see the COPYING file
in the source distribution for its full text.
*/
@@ -284,7 +284,7 @@ bool Platform_getDiskIO(DiskIOData* data) {
if (devstat_checkversion(NULL) < 0)
return false;
- struct devinfo info = { 0 };
+ static struct devinfo info = { 0 };
struct statinfo current = { .dinfo = &info };
// get number of devices

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