Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
MojitOS
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
sepia-pub
MojitOS
Commits
2263acd2
Commit
2263acd2
authored
2 months ago
by
Georges Da Costa
Browse files
Options
Downloads
Patches
Plain Diff
Corrects a bug when no output file are present
parent
e13ea0e1
Branches
Branches containing commit
No related tags found
1 merge request
!12
Libmoj
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
README.md
+2
-2
2 additions, 2 deletions
README.md
src/display_manager.c
+5
-5
5 additions, 5 deletions
src/display_manager.c
with
7 additions
and
7 deletions
README.md
+
2
−
2
View file @
2263acd2
...
@@ -13,8 +13,8 @@ OPTIONS:
...
@@ -13,8 +13,8 @@ OPTIONS:
set
amount of measurements per second.
set
amount of measurements per second.
-t
|--time <
time
>
-t
|--time <
time
>
set
duration value
(
seconds
)
.
If 0,
then
loops infinitely.
set
duration value
(
seconds
)
.
If 0,
then
loops infinitely.
-o
|--
logfile <file
>
-o
|--
option <output file> or <port number
>
specify a log file.
specify a log file
for
MojitO/S or a port number
for
prometeus_mojitO/S
.
-s
|--overhead-stats
-s
|--overhead-stats
enable
overhead statistics
(
nanoseconds
)
.
enable
overhead statistics
(
nanoseconds
)
.
...
...
This diff is collapsed.
Click to expand it.
src/display_manager.c
+
5
−
5
View file @
2263acd2
...
@@ -9,13 +9,13 @@ extern FILE *output;
...
@@ -9,13 +9,13 @@ extern FILE *output;
extern
char
*
output_option
;
extern
char
*
output_option
;
void
init_manager
(
char
**
labels
,
int
nb_sensors
,
int
stat_mode
)
{
void
init_manager
(
char
**
labels
,
int
nb_sensors
,
int
stat_mode
)
{
if
(
output_option
!=
NULL
)
{
if
((
output
=
fopen
(
output_option
,
"wb"
))
==
NULL
)
{
if
((
output
=
fopen
(
output_option
,
"wb"
))
==
NULL
)
{
perror
(
"fopen"
);
perror
(
"fopen"
);
PANIC
(
1
,
"-o %s"
,
output_option
);
PANIC
(
1
,
"-o %s"
,
output_option
);
}
}
}
fprintf
(
output
,
"#timestamp "
);
fprintf
(
output
,
"#timestamp "
);
for
(
int
i
=
0
;
i
<
nb_sensors
;
i
++
)
{
for
(
int
i
=
0
;
i
<
nb_sensors
;
i
++
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment