Skip to content

Issues with Ram/Swap #4

@Mte90

Description

@Mte90

I got Memory 0 with the script but is impossible.

So checking on the code I got:

[domain@machine ~]$ free -m                                                                                                                          
              total        used        free      shared  buff/cache   available                                                                      
Mem:         128817        8881        9009        5416      110926      112742                                                                      
Swap:         16383          13       16370
[domain@machine ~]$ free -m | awk 'NR==3{print $3}'
13

Seems that take the value from swap on the wrong line

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions