diff options
author | Ulf Lamping <ulf.lamping@web.de> | 2005-10-07 03:34:27 +0000 |
---|---|---|
committer | Ulf Lamping <ulf.lamping@web.de> | 2005-10-07 03:34:27 +0000 |
commit | 4443681a9e13b926e6c34da6c44cf93103d21944 (patch) | |
tree | c814074c0113c005e736318466407d75c35e4760 /capture_loop.c | |
parent | 8fc87ba3ba8089e586b396d921f95351bc885ca0 (diff) | |
download | wireshark-4443681a9e13b926e6c34da6c44cf93103d21944.tar.gz wireshark-4443681a9e13b926e6c34da6c44cf93103d21944.tar.bz2 wireshark-4443681a9e13b926e6c34da6c44cf93103d21944.zip |
fix Ethereal so command line capture parameter will work with kilobytes (again)
remove Byte(s) from the dropdown list of filesizes, this doesn't make sense
replace 1000 with 1024, as all (modern?) file managers are based on 1024 bytes for a kilobyte (the old KB vs. KiB controversy)
svn path=/trunk/; revision=16149
Diffstat (limited to 'capture_loop.c')
-rw-r--r-- | capture_loop.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/capture_loop.c b/capture_loop.c index c6dfd67fe6..97d8fe9967 100644 --- a/capture_loop.c +++ b/capture_loop.c @@ -1212,9 +1212,7 @@ capture_loop_start(capture_options *capture_opts, gboolean *stats_known, struct *stats_known = FALSE; g_log(LOG_DOMAIN_CAPTURE_CHILD, G_LOG_LEVEL_INFO, "Capture child starting ..."); -#ifdef LOG_CAPTURE_VERBOSE capture_opts_log(LOG_DOMAIN_CAPTURE_CHILD, G_LOG_LEVEL_DEBUG, capture_opts); -#endif /* open the output file (temporary/specified name/ringbuffer) */ if (!capture_loop_open_output(capture_opts, &save_file_fd, errmsg, sizeof(errmsg))) { @@ -1257,7 +1255,7 @@ capture_loop_start(capture_options *capture_opts, gboolean *stats_known, struct /* create stop conditions */ if (capture_opts->has_autostop_filesize) cnd_autostop_size = - cnd_new(CND_CLASS_CAPTURESIZE,(long)capture_opts->autostop_filesize); + cnd_new(CND_CLASS_CAPTURESIZE,(long)capture_opts->autostop_filesize * 1024); if (capture_opts->has_autostop_duration) cnd_autostop_duration = cnd_new(CND_CLASS_TIMEOUT,(gint32)capture_opts->autostop_duration); |