projects
/
profile
/
ivi
/
ico-vic-amb-plugin.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
packaging: add AMB configuration that enables the plugin
[profile/ivi/ico-vic-amb-plugin.git]
/
tests
/
checkinterspace.awk
1
BEGIN {
2
FS = " "
3
prevtime = -1
4
measurementerror = 0.2
5
errorflg = 0
6
}
7
{
8
if (prevtime != -1) {
9
currenttime = $1
10
interspacetime = currenttime - prevtime
11
if (interspacetime < (standardvalue - (standardvalue * measurementerror)) || interspacetime > (standardvalue + (standardvalue * measurementerror))) {
12
print interspacetime
13
errorflg = 1
14
}
15
}
16
prevtime = $1
17
}
18
END {
19
if (errorflg == 0) {
20
print "OK!"
21
}
22
else {
23
print "NG"
24
}
25
}