Template::Plugin::Octets - TT2 plugin to format numeric values as binary octets
version 0.18
[% USE Octets %]
Xmit [% Octets.kio(100500) -%] Kio
Recv [% Octets.mio(9000) -%] Mio
# Output:
# Xmit 98.1 Kio
# Recv ~0 Mio
Template::Plugin::Octets is a plugin for Template Toolkit v2, which allows you to format numbers in templates. Try to run
tpage eg/traffic.tt
to see it in action.
Format value as kibioctets (2^10 octets).
Format value as mebioctets (2^20 octets).
Format value as gibioctets (2^30 octets).
Anton Gerasimov <[email protected]>
This software is copyright (c) 2013 by Anton Gerasimov.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.