Add new mode to other platforms and indicate mac only support in README

This commit is contained in:
cousine 2016-02-10 17:38:11 +02:00
parent 1b8fa1ec3a
commit 0e89998ee4
5 changed files with 5 additions and 4 deletions

@ -124,6 +124,7 @@ The full usage::
Set how many lines should be drawn in a graph. Default: 10
-m <value>, --mem-mode
Set the memory presentation mode, 0 for used/total, 1 for free memory and 2 for percentage.
Currently supported only by OSX
Default: 0

@ -29,7 +29,7 @@
#include "luts.h"
#include "conversions.h"
std::string mem_string( bool use_colors = false )
std::string mem_string( bool use_colors = false, int mode = 0 )
{
// These values are in bytes
//u_int total;

@ -24,7 +24,7 @@
#include "luts.h"
#include "conversions.h"
std::string mem_string( bool use_colors = false )
std::string mem_string( bool use_colors = false, int mode = 0 )
{
using std::string;
using std::ifstream;

@ -28,7 +28,7 @@
#include "conversions.h"
#include "memory.h"
std::string mem_string( bool use_colors = false )
std::string mem_string( bool use_colors = false, int mode = 0 )
{
std::ostringstream oss;

@ -47,7 +47,7 @@ static int pageshift;
#endif
#define pagesh(size) ((size) << pageshift)
std::string mem_string( bool use_colors = false )
std::string mem_string( bool use_colors = false, int mode = 0 )
{
std::ostringstream oss;