home
/
code
/
khatus.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Show age of last Signal message
[khatus.git]
/
bin
/
khatus_show
diff --git
a/bin/khatus_show
b/bin/khatus_show
index
e43b556
..
a5fbae8
100755
(executable)
--- a/
bin/khatus_show
+++ b/
bin/khatus_show
@@
-44,10
+44,9
@@
disk=$(
function round(n) {return int(n + 0.5)}
$1 == "/dev/mapper/kubuntu--vg-root" {
function round(n) {return int(n + 0.5)}
$1 == "/dev/mapper/kubuntu--vg-root" {
-
total = $2
;
-
used = $3
;
+
curr = $5
;
+
sub("%$", "", curr)
;
file = "/home/siraaj/var/run/status/disk_space_used_percentage";
file = "/home/siraaj/var/run/status/disk_space_used_percentage";
- curr = round(used / total * 100);
getline prev < file;
print curr > file;
if (curr > prev) {
getline prev < file;
print curr > file;
if (curr > prev) {
@@
-279,6
+278,8
@@
echo \
W:$wifi\
\
\
W:$wifi\
\
\
+ $signal_last_msg_age\
+ \
$weather\
\
$datetime \
$weather\
\
$datetime \
This page took
0.029482 seconds
and
4
git commands to generate.