PHP Класс CurrantPi\StringHelpers

Показать файл Открыть проект

Открытые методы

Метод Описание
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 )