Andrew Taylor
bb44e5c842
Fix: Avoid potential delay in calc of RAM (darwin)
...
The system_profiler command used to determine the total memory on darwin
systems performs an "Activation Lock" check. This can produce a delay in
returning total memory. I began experiencing delays of around 10 seconds.
Switching from system_profiler to sysctl to calculate total memory
bypasses the "Activation Lock" check / timeout scenario.
Results of "time" command using system_profiler:
system_profiler SPHardwareDataType 0.17s user 0.23s system 3% cpu 10.165 total
grep -a "Memory:" 0.00s user 0.00s system 0% cpu 10.164 total
awk '{print $2 $3}' 0.00s user 0.00s system 0% cpu 10.163 total
Results of "time" command using sysctl:
sysctl -n hw.memsize 0.00s user 0.00s system 83% cpu 0.004 total
awk '{print $0/1024/1024/1024 " GB"}' 0.00s user 0.00s system 86% cpu 0.004 total
2023-12-15 10:57:07 -05:00
Ethan Edwards
59e4fe7dbe
Merge branch 'master' into master
2023-09-25 13:30:27 -04:00
richard
129c602c86
fix he ram value
2023-02-14 17:56:36 +00:00
richard
5cd6616479
add OpenBSD
2023-02-10 17:25:03 +00:00
Adrien Kara
1d3d07c3d2
♻️ refactor(ram_info): cleanup and follow bash recommendations
...
- Remove the sleep rate, controled by show_refresh in dracula.sh
Signed-off-by: Adrien Kara <adrien@iglou.eu>
2023-01-07 23:59:02 +01:00
Adrien Kara
beb6085ad7
🐛 fix( #165 ): is no longer based on word matching
...
Signed-off-by: Adrien Kara <adrien@iglou.eu>
2023-01-07 18:36:14 +01:00
Ethan Edwards
67f7e5ecf8
Cleanup RAM file
2021-10-09 19:48:10 -04:00
Artur Tsuda
d075e4d048
Fix $used_mem when page size is not 4Kb
2021-08-10 17:02:34 -03:00
Sabato Luca Guadagno
87df275c6e
get_tmux_option(), normalize_percent_len() in scripts/utils.sh
...
source scripts/utils.sh in dracula.sh, cpu_info.sh, gpu_usage.sh, ram_info.sh
normalize_percent_len for ram_info
custom labels for cpu-usage, gpu-usage, ram-usage
2021-07-06 11:21:21 +02:00
Sabato Luca Guadagno
151cd3e45f
resolve #106 , Bug: GiGB in RAM usage (Ubuntu)
2021-07-06 10:29:37 +02:00
Sabato Luca Guadagno
d00c245d4e
consistent formatting across all scripts
2021-07-06 10:22:36 +02:00
Ethan Edwards
461ef98582
Merge pull request #79 from ethancedwards8/freebsd_support
...
FreeBSD support - Battery and Ram
2020-10-16 19:08:34 -04:00
Ethan Edwards
ca26328453
Fix Locale issue
...
Caused some users to have incorrect info because some text manipulation
tools were getting confused.
2020-10-16 18:38:29 -04:00
Max Drasbeck
764f267dbe
Reintroduced fix.
2020-09-12 07:27:32 +02:00
Max Drasbeck
8effb120dd
Revert to original.
2020-09-12 07:25:48 +02:00
Max Drasbeck
b2d99517d0
Added conditional for linux boxes with < 1 GB Ram
2020-09-12 00:12:38 +02:00
Ethan Edwards
cac4731e56
Cleaned up the Memory scripts by removing undeeded greps and using awk
...
This will speed up execution because bash only needs to call the awk
binary and not grep along with it.
2020-09-10 17:45:55 -04:00
Ethan Edwards
47fe175441
Merge branch 'master' of https://github.com/ethancedwards8/tmux into freebsd_support
2020-09-01 21:40:47 -04:00
Ethan Edwards
e2004baa51
added ram support
2020-09-01 21:24:39 -04:00
Ethan Edwards
b662f2e10d
documentation
2020-08-10 08:04:51 -04:00
Ethan Edwards
e290571fee
added the refresh rate by pulling from the .tmux.conf file and running
...
the get_tmux_option function and using that as the variable for the
refresh rate on sleep
2020-08-10 07:57:48 -04:00
Ethan Edwards
695a67531f
init for refresh_rate NOT WORKING
2020-08-09 01:50:07 -04:00
Christopher Sardegna
8d52547025
Update ram_info.sh
...
Fix brace
2020-07-23 23:12:23 -04:00
Christopher Sardegna
15a078a7dd
Fix typo in shebang
2020-07-23 10:47:18 -04:00
Christopher Sardegna
633ab4776b
Fix reporting negative memory usage on MacOS
2020-07-23 10:45:49 -04:00
Ethan Edwards
0516471e72
mac compatability is working
2020-06-28 13:34:08 -04:00
Ethan Edwards
ac2f789ff4
Fixed reviews
2020-06-13 21:42:27 -04:00
Ethan Edwards
420eed6fd4
dont mind the commits, Im testing it on a mac, and editing and pushing
...
it from my desktop
2020-06-07 19:21:46 -04:00
Ethan Edwards
eeff7ec82d
Trying to get this to work
2020-06-07 19:19:52 -04:00
Ethan Edwards
167260211a
Found a nice lil trick
2020-06-07 19:16:55 -04:00
Ethan Edwards
8ba9b20152
realized the command i was trying to use was depreciated
2020-06-07 19:08:55 -04:00
Ethan Edwards
4cf72d94c3
I hope this works lol
2020-06-06 22:41:30 -04:00
Ethan Edwards
833baa9616
I think this will add Mac/Darwin support
2020-06-04 00:33:47 -04:00
Ethan Edwards
3d5a3cbb8f
Added ram percentage support
2020-06-03 23:44:17 -04:00