Convert README to English with natural flow
- Recreated entire README in English - Preserved all technical details and data - Improved flow and readability - Kept Swedish version as README_SV.md for reference - All charts and analysis now in English
This commit is contained in:
+4
-3
@@ -37,12 +37,13 @@ verify() {
|
||||
fi
|
||||
}
|
||||
|
||||
# Function to get memory usage of a process (in KB)
|
||||
# Function to get memory usage of a process (in bytes)
|
||||
get_memory_usage() {
|
||||
local pid=$1
|
||||
if [ -n "$pid" ] && kill -0 "$pid" 2>/dev/null; then
|
||||
# Use ps to get RSS (resident set size) in KB
|
||||
ps -o rss= -p "$pid" 2>/dev/null || echo "0"
|
||||
# Use ps to get RSS (resident set size) in KB, then convert to bytes
|
||||
local kb=$(ps -o rss= -p "$pid" 2>/dev/null || echo "0")
|
||||
echo $((kb * 1024))
|
||||
else
|
||||
echo "0"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user