Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
Linux programozás nagyházi
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Eckl, Máté
Linux programozás nagyházi
Commits
12089093
Commit
12089093
authored
May 26, 2016
by
dnsadmin
Browse files
Options
Downloads
Patches
Plain Diff
Monitorozás nem lesz (
#8
)
Akit érdekel, nézzen logot!
parent
b0c255f8
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/command.h
+1
-2
1 addition, 2 deletions
include/command.h
main.cpp
+0
-4
0 additions, 4 deletions
main.cpp
with
1 addition
and
6 deletions
include/command.h
+
1
−
2
View file @
12089093
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
enum
command
enum
command
{
{
MONITOR
,
STATISTICS
,
KILL
STATISTICS
,
KILL
};
};
/**
/**
...
@@ -27,7 +27,6 @@ enum command
...
@@ -27,7 +27,6 @@ enum command
const
char
*
get_readable_command
(
command
c
)
{
const
char
*
get_readable_command
(
command
c
)
{
switch
(
c
)
switch
(
c
)
{
{
case
MONITOR
:
return
"monitor"
;
case
STATISTICS
:
return
"statistics"
;
case
STATISTICS
:
return
"statistics"
;
case
KILL
:
return
"kill"
;
case
KILL
:
return
"kill"
;
default:
return
""
;
default:
return
""
;
...
...
This diff is collapsed.
Click to expand it.
main.cpp
+
0
−
4
View file @
12089093
...
@@ -40,9 +40,6 @@ int main(int argc, char *argv[])
...
@@ -40,9 +40,6 @@ int main(int argc, char *argv[])
case
'd'
:
case
'd'
:
run_as_daemon
=
true
;
run_as_daemon
=
true
;
break
;
break
;
case
'm'
:
command_list
.
push_back
(
MONITOR
);
break
;
case
's'
:
case
's'
:
command_list
.
push_back
(
STATISTICS
);
command_list
.
push_back
(
STATISTICS
);
break
;
break
;
...
@@ -176,7 +173,6 @@ For more info look at the man page.
...
@@ -176,7 +173,6 @@ For more info look at the man page.
Options:
Options:
-d Run as daemon
-d Run as daemon
-m Monitor daemon
-s Statistics from daemon
-s Statistics from daemon
-k Kill daemon
-k Kill daemon
-v Verbose
-v Verbose
...
...
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