mirror of
https://github.com/servalproject/serval-dna.git
synced 2025-01-18 10:46:23 +00:00
Improve test framework: fix some minor awk bugs
This commit is contained in:
parent
157fe3f1d6
commit
226fcf3754
@ -882,7 +882,7 @@ tfw_cat() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
tfw_multicolumn() {
|
tfw_multicolumn() {
|
||||||
awk '
|
$AWK '
|
||||||
function pad(s, n) {
|
function pad(s, n) {
|
||||||
return sprintf("%-" n "s", s)
|
return sprintf("%-" n "s", s)
|
||||||
}
|
}
|
||||||
@ -1164,7 +1164,7 @@ _tfw_parse_times_to_milliseconds() {
|
|||||||
if (substr(value, length(value)) == "s") {
|
if (substr(value, length(value)) == "s") {
|
||||||
value = substr(value, 1, length(value) - 1)
|
value = substr(value, 1, length(value) - 1)
|
||||||
}
|
}
|
||||||
if (match(value, "^[0-9]+(\.[0-9]+)?$")) {
|
if (match(value, "^[0-9]+(\\.[0-9]+)?$")) {
|
||||||
seconds = value + 0
|
seconds = value + 0
|
||||||
print (minutes * 60 + seconds) * 1000
|
print (minutes * 60 + seconds) * 1000
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user