Fixed global explorers on OSX

OSX may not be widely used, but I figured it's good finger-practice ;-)
In linux the mem is allready in kB, so why should i change that ?


2014-06-18 10:13 GMT+02:00 Manuel <notifications@github.com>:

> In cdist/conf/explorer/memory:
>
> > @@ -22,6 +22,16 @@
> >
> >  # FIXME: other system types (not linux ...)
> >
> > -if [ -r /proc/meminfo ]; then
> > -    echo "$(cat /proc/meminfo | grep "MemTotal:" | awk '{print $2}')"
> > -fi
> > +os=$("$__explorer/os")
> > +case "$os" in
> > +    "macosx")
> > +        let memsize=$(sysctl -n hw.memsize)/1024
> > +        echo "$memsize"
>
> Mostly because I don't know another way to divide by 1024 in shell...
> Which brings me to the question if output in kB is what @dheule
> <https://github.com/dheule> intended?
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/telmich/cdist/pull/345/files#r13903693>.
>