Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Synchronet
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
Container 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
Main
Synchronet
Commits
9298750a
Commit
9298750a
authored
5 years ago
by
rswindell
Browse files
Options
Downloads
Patches
Plain Diff
Add viewing of BinkP stats (binkstats.ini)
parent
2b243e38
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/sbbs3/umonitor/umonitor.c
+10
-4
10 additions, 4 deletions
src/sbbs3/umonitor/umonitor.c
with
10 additions
and
4 deletions
src/sbbs3/umonitor/umonitor.c
+
10
−
4
View file @
9298750a
...
...
@@ -444,7 +444,7 @@ int view_logs(scfg_t *cfg)
localtime_r
(
&
now
,
&
tm
);
now
-=
60
*
60
*
24
;
localtime_r
(
&
now
,
&
tm_yest
);
const
int
num_opts
=
1
1
;
const
int
num_opts
=
1
2
;
if
((
opt
=
(
char
**
)
alloca
(
sizeof
(
char
*
)
*
(
num_opts
+
1
)))
==
NULL
)
allocfail
(
sizeof
(
char
*
)
*
(
num_opts
+
1
));
for
(
i
=
0
;
i
<
(
num_opts
+
1
);
i
++
)
...
...
@@ -460,6 +460,7 @@ int view_logs(scfg_t *cfg)
strcpy
(
opt
[
i
++
],
"Spam log"
);
strcpy
(
opt
[
i
++
],
"SBBSecho log"
);
strcpy
(
opt
[
i
++
],
"EchoMail stats"
);
strcpy
(
opt
[
i
++
],
"BinkP stats"
);
strcpy
(
opt
[
i
++
],
"Bad Areas list"
);
strcpy
(
opt
[
i
++
],
"Guru log"
);
strcpy
(
opt
[
i
++
],
"Hack log"
);
...
...
@@ -474,7 +475,8 @@ int view_logs(scfg_t *cfg)
"`Yesterday's log : `View Yesterday's system activity.
\n
"
"`Spam log : `View the log of Spam E-Mail sent to the system.
\n
"
"`SBBSecho log : `View the FidoNet EchoMail program log.
\n
"
"`EchoMail stats : `view the EchoMail statistics.
\n
"
"`EchoMail stats : `view the FidoNet EchoMail statistics.
\n
"
"`Binkp stats : `view the BinkP FidoNet mailer statistics.
\n
"
"`Bad Areas list : `view the list of unknown EchoMail areas.
\n
"
"`Guru log : `View the transcriptions of chats with the Guru.
\n
"
"`Hack log : `View the Hack attempt log."
;
...
...
@@ -520,14 +522,18 @@ int view_logs(scfg_t *cfg)
view_log
(
str
,
"EchoMail Stats"
);
break
;
case
8
:
sprintf
(
str
,
"%sbinkstats.ini"
,
cfg
->
data_dir
);
view_log
(
str
,
"BinkP Stats"
);
break
;
case
9
:
sprintf
(
str
,
"%sbadareas.lst"
,
cfg
->
data_dir
);
view_log
(
str
,
"Bad Area List"
);
break
;
case
9
:
case
10
:
sprintf
(
str
,
"%sguru.log"
,
cfg
->
logs_dir
);
view_log
(
str
,
"Guru Log"
);
break
;
case
1
0
:
case
1
1
:
sprintf
(
str
,
"%shack.log"
,
cfg
->
logs_dir
);
view_log
(
str
,
"Hack Log"
);
break
;
...
...
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