Changeset 26


Ignore:
Timestamp:
12/02/14 12:33:00 (9 years ago)
Author:
jeroene
Message:

Fixed a buggy (sara-get-mem-size)

Files:
4 edited

Legend:

Unmodified
Added
Removed
  • tags/0.94/sara-get-mem-size

    r7 r26  
    11#!/bin/bash
    22cat /proc/meminfo | awk '
    3   /MemTotal:/ { print int($2/1000000) ; exit }'
     3  /MemTotal:/ { print int($2/1048576) ; exit }'
  • tags/0.94/sara-get-mem-size.1

    r7 r26  
    66.SH DESCRIPTION
    77.I Sara-get-mem-size
    8 Writes the amount of memory in Mbytes to standard output.
     8Writes the amount of memory in Gbytes to standard output.
    99
    1010.TP 8
  • trunk/sara-get-mem-size

    r7 r26  
    11#!/bin/bash
    22cat /proc/meminfo | awk '
    3   /MemTotal:/ { print int($2/1000000) ; exit }'
     3  /MemTotal:/ { print int($2/1048576) ; exit }'
  • trunk/sara-get-mem-size.1

    r7 r26  
    66.SH DESCRIPTION
    77.I Sara-get-mem-size
    8 Writes the amount of memory in Mbytes to standard output.
     8Writes the amount of memory in Gbytes to standard output.
    99
    1010.TP 8
Note: See TracChangeset for help on using the changeset viewer.