2021-11-04 18:20:38
This commit is contained in:
Binary file not shown.
@@ -6,7 +6,7 @@
|
|||||||
# By: gbaconni@student.42lausanne.ch +#+ +:+ +#+ #
|
# By: gbaconni@student.42lausanne.ch +#+ +:+ +#+ #
|
||||||
# +#+#+#+#+#+ +#+ #
|
# +#+#+#+#+#+ +#+ #
|
||||||
# Created: 2021/11/04 12:36:53 by gbaconni #+# #+# #
|
# Created: 2021/11/04 12:36:53 by gbaconni #+# #+# #
|
||||||
# Updated: 2021/11/04 18:19:42 by gbaconni ### lausanne.ch #
|
# Updated: 2021/11/04 18:20:34 by gbaconni ### lausanne.ch #
|
||||||
# #
|
# #
|
||||||
# **************************************************************************** #
|
# **************************************************************************** #
|
||||||
|
|
||||||
@@ -30,7 +30,7 @@ ft_memory ()
|
|||||||
|
|
||||||
ft_disk ()
|
ft_disk ()
|
||||||
{
|
{
|
||||||
df --total -Bm -T -l -x tmpfs -x devtmpfs | \
|
df --total -Bm -T -l -x tmpfs -x devtmpfs \
|
||||||
| awk '/^total/ { total=int($3); used=int($4); pcent=int($6) } END { printf "#Disk Usage: %d/%dGb (%.2f%%)\n", used, total / 1000, pcent; }'
|
| awk '/^total/ { total=int($3); used=int($4); pcent=int($6) } END { printf "#Disk Usage: %d/%dGb (%.2f%%)\n", used, total / 1000, pcent; }'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user