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
0fbd4d41
Commit
0fbd4d41
authored
Feb 14, 2014
by
Claes Sjofors
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Wb history html file size limited to 1000 rows
parent
5f630c78
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
wb/lib/wb/src/wb_log.cpp
wb/lib/wb/src/wb_log.cpp
+7
-1
No files found.
wb/lib/wb/src/wb_log.cpp
View file @
0fbd4d41
...
...
@@ -181,6 +181,7 @@ void wb_log::generate_html( char *filename, pwr_tStatus *sts)
char
timstr
[
24
];
char
pname
[
80
];
pwr_tFileName
help_fname
,
help_filename
;
unsigned
int
max_size
=
1000
;
time_AtoAscii
(
0
,
time_eFormat_DateAndTime
,
timstr
,
sizeof
(
timstr
));
utl_get_projectname
(
pname
);
...
...
@@ -219,7 +220,12 @@ void wb_log::generate_html( char *filename, pwr_tStatus *sts)
fprintf
(
fp
,
"<h2>Workbench History</h2>
\n
<xmp> %s %s</xmp><br>
\n
<a href=
\"
%s
\"
>Help</a>
\n
<XMP>
\n\n
"
,
pname
,
timstr
,
help_filename
);
fprintf
(
fp
,
"%-20s %-10s %-20s %-20s %s
\n
"
,
"Date"
,
"User"
,
"Action"
,
"Item"
,
"Comment"
);
fprintf
(
fp
,
"----------------------------------------------------------------------------------------------
\n
"
);
for
(
int
i
=
cbctx
.
v
.
size
()
-
1
;
i
>=
0
;
i
--
)
{
unsigned
int
to
=
0
;
if
(
cbctx
.
v
.
size
()
>
max_size
)
to
=
cbctx
.
v
.
size
()
-
max_size
;
for
(
unsigned
int
i
=
cbctx
.
v
.
size
()
-
1
;
i
>=
to
;
i
--
)
{
if
(
!
cbctx
.
v
[
i
].
disable
)
fprintf
(
fp
,
"%s
\n
"
,
cbctx
.
v
[
i
].
text
.
c_str
());
}
...
...
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