Menu

#152 Added $memwithbuffers object and bar

SVN
closed-accepted
nobody
5
2010-02-18
2010-02-18
Caleb Spare
No

I've added $memwithbuffers to complement $mem, $memeasyfree, etc. This variable indicates the used system memory, regardless of buffers/caches. If the "no_buffers" option is set to "no", it will be the same as $mem. The reason I find this change useful is that I like to display both the total used system memory and the memory being used by applications.

I've also included a memwithbuffersbar, which is the same as membar except that it uses $memwithbuffers as the size instead of $mem.

This is my first patch to an open-source project, so please let me know if I've done something wrong :) I wasn't sure if I was supposed to update the changelog, so I left it alone. I did, however, update the relevant xml doc file (variables.xml).

I tested this against the latest git trunk.

Discussion

  • Caleb Spare

    Caleb Spare - 2010-02-18

    Patch for the changed cc and header files, as well as docbook file.

     
  • pavelo

    pavelo - 2010-02-18

    I have applied this.
    Thanks for the patch.

     
  • pavelo

    pavelo - 2010-02-18
    • status: open --> closed-accepted
     

Log in to post a comment.