스크립트로 cpu, memory, disk 등등 리소스정보를 구하고 있습니다.
여기서 궁굼한점이,
vmstat 명령어를 통하여 출력되는 값들을
소숫점 2자리까지 출력되게 해보았습니다,
하지만 소숫점 두자리까진 출력이 되는데
XX.00으로 출력되네여
이거 방법이 없을까요?
텍스트 포맷에 대한 자세한 정보
<code>
<blockcode>
<apache>
<applescript>
<autoconf>
<awk>
<bash>
<c>
<cpp>
<css>
<diff>
<drupal5>
<drupal6>
<gdb>
<html>
<html5>
<java>
<javascript>
<ldif>
<lua>
<make>
<mysql>
<perl>
<perl6>
<php>
<pgsql>
<proftpd>
<python>
<reg>
<spec>
<ruby>
<foo>
[foo]
댓글 달기