Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
csst-pipeline
msc
sextractor
Commits
3c591638
Commit
3c591638
authored
May 29, 2009
by
Emmanuel Bertin
Browse files
Further refinements on display.
parent
ca1f5856
Changes
1
Show whitespace changes
Inline
Side-by-side
src/main.c
View file @
3c591638
...
@@ -40,6 +40,7 @@ extern keystruct objkey[];
...
@@ -40,6 +40,7 @@ extern keystruct objkey[];
int
main
(
int
argc
,
char
*
argv
[])
int
main
(
int
argc
,
char
*
argv
[])
{
{
double
tdiff
,
lines
,
dets
;
int
a
,
narg
,
nim
,
opt
,
opt2
;
int
a
,
narg
,
nim
,
opt
,
opt2
;
char
**
argkey
,
**
argval
,
*
str
;
char
**
argkey
,
**
argval
,
*
str
;
...
@@ -130,9 +131,12 @@ int main(int argc, char *argv[])
...
@@ -130,9 +131,12 @@ int main(int argc, char *argv[])
endprefs
();
endprefs
();
NFPRINTF
(
OUTPUT
,
""
);
NFPRINTF
(
OUTPUT
,
""
);
NPRINTF
(
OUTPUT
,
"> All done (in %.0f s: %.1f detections/s)
\n
"
,
tdiff
=
prefs
.
time_diff
>
0
.
0
?
prefs
.
time_diff
:
1
.
0
;
prefs
.
time_diff
,
lines
=
(
double
)
thefield1
.
height
/
tdiff
;
(
double
)
thecat
.
ntotal
/
(
prefs
.
time_diff
>
0
.
0
?
prefs
.
time_diff
:
1
.
0
));
dets
=
(
double
)
thecat
.
ntotal
/
tdiff
;
NPRINTF
(
OUTPUT
,
"> All done (in %.0f s: %.1f line%s/s , %.1f detection%s/s)
\n
"
,
prefs
.
time_diff
,
lines
,
lines
>
1
.
0
?
"s"
:
""
,
dets
,
dets
>
1
.
0
?
"s"
:
""
);
return
EXIT_SUCCESS
;
return
EXIT_SUCCESS
;
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment