[Libreoffice-commits] online.git: loolwsd/loolstat

Henry Castro hcastro at collabora.com
Fri Jul 24 10:57:04 PDT 2015


 loolwsd/loolstat |    7 +++++++
 1 file changed, 7 insertions(+)

New commits:
commit e107fa662c90e157547a03cf80889300165c9798
Author: Henry Castro <hcastro at collabora.com>
Date:   Fri Jul 24 13:54:35 2015 -0400

    loolwsd: update loolstat display processes utility

diff --git a/loolwsd/loolstat b/loolwsd/loolstat
index 6926af6..09e937b 100755
--- a/loolwsd/loolstat
+++ b/loolwsd/loolstat
@@ -5,6 +5,7 @@ TR='tr'
 WC='wc'
 PS='ps'
 SED='sed'
+TOP='top'
 GREP='grep'
 PSTREE='pstree'
 
@@ -48,6 +49,11 @@ if ! $PS --version >/dev/null 2>&1; then
   log_failure_msg "$0: error: $PS utility not found."
 fi
 
+# checking ... display Linux processes utility.
+if ! $TOP --v >/dev/null 2>&1; then
+  log_failure_msg "$0: error: $TOP utility not found."
+fi
+
 # checking pid log file.
 if [ ! -f $PIDLOG ]; then
 	log_failure_msg "$0: error: $PIDLOG file not found."
@@ -81,4 +87,5 @@ printf "==========================\n";
 printf " %-10s %d\n" "Running process:" "$PROCESS";
 printf " %-10s %d\n" "Running threads:" "$THREADS";
 printf " %-10s %d\n" "Process swapped out:" "$SWAPPEDOUT";
+$TOP -bn 1 | $GREP -E 'loolwsd|COMMAND'
 


More information about the Libreoffice-commits mailing list