Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Z
zmap
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ensembl-gh-mirror
zmap
Commits
8056c65f
Commit
8056c65f
authored
17 years ago
by
edgrif
Browse files
Options
Downloads
Patches
Plain Diff
warn user if log file is getting too large.
parent
f92dff64
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/zmapApp/zmapAppwindow.c
+8
-3
8 additions, 3 deletions
src/zmapApp/zmapAppwindow.c
with
8 additions
and
3 deletions
src/zmapApp/zmapAppwindow.c
+
8
−
3
View file @
8056c65f
...
...
@@ -26,9 +26,9 @@
*
* Exported functions: None
* HISTORY:
* Last edited:
Jul 18 21:49
2007 (
rds
)
* Last edited:
Oct 16 16:01
2007 (
edgrif
)
* Created: Thu Jul 24 14:36:27 2003 (edgrif)
* CVS info: $Id: zmapAppwindow.c,v 1.4
4
2007-
07-18 21:24:58 rds
Exp $
* CVS info: $Id: zmapAppwindow.c,v 1.4
5
2007-
10-17 15:49:05 edgrif
Exp $
*-------------------------------------------------------------------
*/
...
...
@@ -94,6 +94,7 @@ int zmapMainMakeAppWindow(int argc, char *argv[])
GtkWidget
*
quit_button
;
char
*
sequence
;
int
start
,
end
;
int
log_size
;
/* AppRealiseData app_data = g_new0(AppRealiseDataStruct, 1); */
...
...
@@ -138,7 +139,6 @@ int zmapMainMakeAppWindow(int argc, char *argv[])
exit
(
EXIT_FAILURE
)
;
}
getConfiguration
(
app_context
)
;
/* GTK initialisation */
...
...
@@ -187,6 +187,11 @@ int zmapMainMakeAppWindow(int argc, char *argv[])
gtk_widget_unmap
(
toplevel
)
;
/* Check that log file has not got too big... */
if
((
log_size
=
zMapLogFileSize
())
>
(
ZMAP_DEFAULT_MAX_LOG_SIZE
*
1048576
))
zMapWarning
(
"Log file was grown to %d bytes, you think about archiving or removing it.
\n
"
,
log_size
)
;
/* If user specifyed a sequence in the config. file or on the command line then
* display it straight away. */
sequence
=
app_context
->
default_sequence
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
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