#!/usr/bin/env awk
#
# bps - bits per second
#
# Dependencies:
#   - basicStats
#
# Example:
#   - tawk '{ print bps() }' file

@include "_validate_col"

function bps() {
    _validate_col(bytps, "bytps")
    if ($bytps == "bytps") return "bps"
    return 8 * $bytps
}
