PHP 클래스 CurrantPi\StringHelpers

파일 보기 프로젝트 열기: ColinWaddell/CurrantPi

공개 메소드들

메소드 설명
prettyBaud ( $baud ) * Figure out of the baud rate should be shown as MB/s, Kb/s or b/s.
prettyLoadAverage ( $load_average ) * Take in the load_average as returned by the uptime command and return it as a percentage with the appropriate formatting.
prettyMemory ( $total ) * Take a number of bytes and return it either in terms of Gigs or Megs.
secondsToTime ( $seconds ) * Convert a number of seconds into the Days-Hours-Minutes format.

메소드 상세

prettyBaud() 공개 정적인 메소드

* Figure out of the baud rate should be shown as MB/s, Kb/s or b/s.
public static prettyBaud ( $baud )

prettyLoadAverage() 공개 정적인 메소드

* Take in the load_average as returned by the uptime command and return it as a percentage with the appropriate formatting.
public static prettyLoadAverage ( $load_average )

prettyMemory() 공개 정적인 메소드

* Take a number of bytes and return it either in terms of Gigs or Megs.
public static prettyMemory ( $total )

secondsToTime() 공개 정적인 메소드

* Convert a number of seconds into the Days-Hours-Minutes format.
public static secondsToTime ( $seconds )