summaryrefslogtreecommitdiff
path: root/contrib/scripts
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2021-04-26 17:28:56 +0200
committerChristian Grothoff <christian@grothoff.org>2021-04-26 17:28:56 +0200
commit82a5d35360c4c882d9a5f92c4ac27c61bd4a4cc5 (patch)
tree8c50e8d74033214e711929c3244e5aca34f9705f /contrib/scripts
parent51c0c5072fa27f4964778512a0040c77cce7cd04 (diff)
-fix misc typos
Diffstat (limited to 'contrib/scripts')
-rwxr-xr-xcontrib/scripts/check-texinfo.awk.in5
-rw-r--r--contrib/scripts/gdb-iterate-dll.py2
-rwxr-xr-xcontrib/scripts/gnunet-chk.py.in6
-rwxr-xr-xcontrib/scripts/visualize_stats.sh20
4 files changed, 13 insertions, 20 deletions
diff --git a/contrib/scripts/check-texinfo.awk.in b/contrib/scripts/check-texinfo.awk.in
index 3d6a1c643..4efa73658 100755
--- a/contrib/scripts/check-texinfo.awk.in
+++ b/contrib/scripts/check-texinfo.awk.in
@@ -52,11 +52,6 @@ BEGIN {
}
{
- if (/wether/) {
- printf "...lines containing a popular typo\n" ;
- print FILENAME":"NR":"$0 ;
- }
-
if (/the the/) {
printf "...lines containing a popular typo\n" ;
print FILENAME":"NR":"$0 ;
diff --git a/contrib/scripts/gdb-iterate-dll.py b/contrib/scripts/gdb-iterate-dll.py
index 28c435ccb..882dee039 100644
--- a/contrib/scripts/gdb-iterate-dll.py
+++ b/contrib/scripts/gdb-iterate-dll.py
@@ -7,7 +7,7 @@ def search_dll(head, field, match, pfield):
head: name of the symbol denoting the head of the DLL
field: the field that should be search for match
- match: the mathing value for field
+ match: the matching value for field
pfield: the field whose value is to be printed for matched elements; None to
print all fields of the matched elemented
"""
diff --git a/contrib/scripts/gnunet-chk.py.in b/contrib/scripts/gnunet-chk.py.in
index afc0924f4..74e9e4cf9 100755
--- a/contrib/scripts/gnunet-chk.py.in
+++ b/contrib/scripts/gnunet-chk.py.in
@@ -32,7 +32,7 @@ from functools import reduce
# Defaults
DBLOCK_SIZE = (32 * 1024) # Data block size
-# Pick a multiple of 2 here to achive 8-byte alignment! We also
+# Pick a multiple of 2 here to achieve 8-byte alignment! We also
# probably want DBlocks to have (roughly) the same size as IBlocks.
# With SHA-512, the optimal value is 32768 byte / 128 byte = 256 (128
# byte = 2 * 512 bits). DO NOT CHANGE!
@@ -288,7 +288,7 @@ def compute_rootchk(readin, size):
current_depth = 0
chks = [None] * (depth * CHK_PER_INODE) # list buffer
read_offset = 0
- logging.debug("Begining to calculate tree hash with depth: " + repr(depth))
+ logging.debug("Beginning to calculate tree hash with depth: " + repr(depth))
while True:
if (depth == current_depth):
off = CHK_PER_INODE * (depth - 1)
@@ -370,7 +370,7 @@ if '__main__' == __name__:
opts, args = getopt.getopt(sys.argv[1:], "h", ["help"])
except getopt.GetoptError as err:
print(err)
- print("Exception occured")
+ print("Exception occurred")
usage()
sys.exit(2)
for option, value in opts:
diff --git a/contrib/scripts/visualize_stats.sh b/contrib/scripts/visualize_stats.sh
index aaa5e657b..b3404b164 100755
--- a/contrib/scripts/visualize_stats.sh
+++ b/contrib/scripts/visualize_stats.sh
@@ -1,7 +1,7 @@
#!/bin/bash
#
-# This script polls gnunet-stats repeatedly to create statistics plots.
-# Use 'collect' to collect statistics and 'plot' to plot whats been
+# This script polls gnunet-stats repeatedly to create statistics plots.
+# Use 'collect' to collect statistics and 'plot' to plot what has been
# collected. All plots will be written to $STATDIR as separate .png files.
#
# WARNING: calling 'collect' will delete all files in $STATDIR.
@@ -10,7 +10,7 @@
#
# Note: gnuplot syntax has changed across versions. This
# script perhaps will not produce color images with older gnuplots.
-# The script should work atleast with gnuplot 3.8k patchlevel 1.
+# The script should work at least with gnuplot 3.8k patchlevel 1.
#
SLEEP=120
@@ -26,10 +26,10 @@ mkdir -p $STATDIR
case "$1" in
collect)
rm -f $STATDIR/*
-
+
STARTTIME=`date +%s`
IFS=":"
-
+
while true; do
NOW=`date +%s`
RELAT=$[$NOW-$STARTTIME]
@@ -45,7 +45,7 @@ case "$1" in
# Write new stats
echo $RELAT $VALUE >>"$STATDIR/$KEY.dat"
echo $RELAT $PREV $VALUE >>"$STATDIR/$KEY.diff"
-
+
done
sleep $SLEEP
done
@@ -61,13 +61,13 @@ case "$1" in
rm "$FILENAME.png"
fi
done
-
+
# Plot diff
ls -1 $STATDIR/*.diff | while read FILENAME; do
BASENAME=`basename "$FILENAME" | sed -e "s/ *\..*//g"`
echo "set terminal png;set output '$FILENAME.png';set title '$BASENAME - diff';plot '$FILENAME' using (\$1/60):(\$3-\$2) title '' with lines;" | nice gnuplot 2> $TMP
EC=`cat $TMP | grep "empty" | grep "Warning" | wc -l`
- if test $EC -ge 1
+ if test $EC -ge 1
then
rm "$FILENAME.png"
fi
@@ -80,7 +80,5 @@ case "$1" in
*)
echo $"Usage: $0 {collect|plot|view}"
exit 1
-
-esac
-
+esac