Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
proview
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Esteban Blanc
proview
Commits
9cc392f4
Commit
9cc392f4
authored
Oct 31, 2012
by
Claes Sjofors
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Report server, display needed when reporting GeGraphs can be configured
parent
606c9d72
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
30 additions
and
2 deletions
+30
-2
src/exe/rt_report/src/rt_report.cpp
src/exe/rt_report/src/rt_report.cpp
+19
-2
src/exe/rt_report/src/rt_report.h
src/exe/rt_report/src/rt_report.h
+1
-0
src/wbl/pwrb/src/pwrb_c_reportconfig.wb_load
src/wbl/pwrb/src/pwrb_c_reportconfig.wb_load
+10
-0
No files found.
src/exe/rt_report/src/rt_report.cpp
View file @
9cc392f4
...
...
@@ -62,6 +62,7 @@ rt_report::rt_report() : scan_time(1), conf(0), first_scan(1),
now_sec
(
0
),
now_min
(
0
),
now_hour
(
0
),
now_mday
(
0
),
now_wday
(
0
),
now_yday
(
0
)
{
strcpy
(
display
,
""
);
}
void
rt_report
::
open
()
...
...
@@ -941,7 +942,18 @@ int rt_report::parse( char *line)
fout
<<
"wait 2 "
<<
endl
;
fout
<<
"export graph /graph="
<<
line_array
[
2
]
<<
" /file=
\"
"
<<
line_array
[
3
]
<<
"
\"
"
<<
endl
;
sprintf
(
cmd
,
"rt_xtt_cmd -i -q @%s"
,
fname
);
strcpy
(
cmd
,
"rt_xtt_cmd "
);
if
(
strcmp
(
display
,
""
)
!=
0
)
{
strcpy
(
cmd
,
"export DISPLAY="
);
strcat
(
cmd
,
display
);
strcat
(
cmd
,
";"
);
}
else
strcpy
(
cmd
,
""
);
strcat
(
cmd
,
"rt_xtt_cmd "
);
strcat
(
cmd
,
" -i -q @"
);
strcat
(
cmd
,
fname
);
system
(
cmd
);
sprintf
(
cmd
,
"rm %s"
,
fname
);
system
(
cmd
);
...
...
@@ -955,7 +967,7 @@ int rt_report::parse( char *line)
return
1
;
}
int
main
()
int
main
(
int
argc
,
char
*
argv
[]
)
{
pwr_tStatus
sts
;
int
tmo
;
...
...
@@ -968,6 +980,11 @@ int main()
report
=
new
rt_report
();
report
->
init
(
&
qid
);
if
(
argc
>
1
)
{
if
(
strcmp
(
argv
[
1
],
"-d"
)
==
0
&&
argc
>
2
)
strcpy
(
report
->
display
,
argv
[
2
]);
}
try
{
report
->
open
();
}
...
...
src/exe/rt_report/src/rt_report.h
View file @
9cc392f4
...
...
@@ -88,6 +88,7 @@ class rt_report {
GeUser
*
udb
;
char
nodename
[
80
];
char
systemgroup
[
80
];
char
display
[
80
];
int
first_scan
;
int
old_sec
;
int
old_min
;
...
...
src/wbl/pwrb/src/pwrb_c_reportconfig.wb_load
View file @
9cc392f4
...
...
@@ -176,6 +176,16 @@ SObject pwrb:Class
Attr TypeRef = "pwrb:Type-PostOptionsMask"
EndBody
EndObject
!/**
! A valid display is needed to print out Ge graphs. By default the local
! screen is used, but if the local screen is not logged in another display
! can be set in this attribute.
!*/
Object Display $Attribute 11
Body SysBody
Attr TypeRef = "pwrs:Type-$String80"
EndBody
EndObject
EndObject
Object Template ReportConfig
Body RtBody
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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