summaryrefslogtreecommitdiffstats
path: root/Process.h
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2015-12-14 13:27:11 -0200
committerHisham Muhammad <hisham@gobolinux.org>2015-12-14 13:27:11 -0200
commit802e216870efb740069583b208fa4bac970653e0 (patch)
treefc30de8f1eff8ed55fd664f00a93914caf567dc5 /Process.h
parentcccc18dd2f820c3eba3a495eb2265d682c77d718 (diff)
Extend buffer for reading lines from /proc.
Apparently a line longer than 255 chars was spotted in the wild: http://serverfault.com/questions/577939/linux-ps-htop-show-processes-running-for-hundreds-or-thousands-of-days-though-h#comment676098_577939
Diffstat (limited to 'Process.h')
-rw-r--r--Process.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Process.h b/Process.h
index 841b1291..d856c035 100644
--- a/Process.h
+++ b/Process.h
@@ -158,6 +158,8 @@ typedef struct ProcessClass_ {
#define ONE_DECIMAL_M (ONE_DECIMAL_K * ONE_DECIMAL_K)
#define ONE_DECIMAL_G (ONE_DECIMAL_M * ONE_DECIMAL_K)
+extern char Process_pidFormat[20];
+
void Process_setupColumnWidths();
void Process_humanNumber(RichString* str, unsigned long number, bool coloring);

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