aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2010-06-22 18:33:15 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2010-06-22 18:33:15 +0200
commit64606c6d01f5b86b62541b12dd4f475635d47270 (patch)
tree456e052613dd895d502bff2d3c35369141d87f82
parentfc6f6e933c20e6016d19339ac472f6af3d05d4c3 (diff)
downloadbusybox-w32-64606c6d01f5b86b62541b12dd4f475635d47270.tar.gz
busybox-w32-64606c6d01f5b86b62541b12dd4f475635d47270.tar.bz2
busybox-w32-64606c6d01f5b86b62541b12dd4f475635d47270.zip
typo fix
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r--init/bootchartd.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/init/bootchartd.c b/init/bootchartd.c
index 2d9770c4c..f7de13e2f 100644
--- a/init/bootchartd.c
+++ b/init/bootchartd.c
@@ -197,7 +197,7 @@ static char *make_tempdir(void)
197 return tempdir; 197 return tempdir;
198} 198}
199 199
200static void do_logging(int sample_pariod_us) 200static void do_logging(int sample_period_us)
201{ 201{
202 //# Enable process accounting if configured 202 //# Enable process accounting if configured
203 //if [ "$PROCESS_ACCOUNTING" = "yes" ]; then 203 //if [ "$PROCESS_ACCOUNTING" = "yes" ]; then
@@ -240,7 +240,7 @@ static void do_logging(int sample_pariod_us)
240 } 240 }
241 fflush_all(); 241 fflush_all();
242 wait_more: 242 wait_more:
243 usleep(sample_pariod_us); 243 usleep(sample_period_us);
244 } 244 }
245 245
246 // [ -e kernel_pacct ] && accton off 246 // [ -e kernel_pacct ] && accton off
@@ -326,7 +326,7 @@ static void finalize(char *tempdir, const char *prog)
326int bootchartd_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; 326int bootchartd_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
327int bootchartd_main(int argc UNUSED_PARAM, char **argv) 327int bootchartd_main(int argc UNUSED_PARAM, char **argv)
328{ 328{
329 int sample_pariod_us; 329 int sample_period_us;
330 pid_t parent_pid, logger_pid; 330 pid_t parent_pid, logger_pid;
331 smallint cmd; 331 smallint cmd;
332 enum { 332 enum {
@@ -361,7 +361,7 @@ int bootchartd_main(int argc UNUSED_PARAM, char **argv)
361 /* Here we are in START or INIT state */ 361 /* Here we are in START or INIT state */
362 362
363 /* Read config file: */ 363 /* Read config file: */
364 sample_pariod_us = 200 * 1000; 364 sample_period_us = 200 * 1000;
365 if (ENABLE_FEATURE_BOOTCHARTD_CONFIG_FILE) { 365 if (ENABLE_FEATURE_BOOTCHARTD_CONFIG_FILE) {
366 char* token[2]; 366 char* token[2];
367 parser_t *parser = config_open2("/etc/bootchartd.conf" + 5, fopen_for_read); 367 parser_t *parser = config_open2("/etc/bootchartd.conf" + 5, fopen_for_read);
@@ -369,7 +369,7 @@ int bootchartd_main(int argc UNUSED_PARAM, char **argv)
369 parser = config_open2("/etc/bootchartd.conf", fopen_for_read); 369 parser = config_open2("/etc/bootchartd.conf", fopen_for_read);
370 while (config_read(parser, token, 2, 0, "#=", PARSE_NORMAL & ~PARSE_COLLAPSE)) { 370 while (config_read(parser, token, 2, 0, "#=", PARSE_NORMAL & ~PARSE_COLLAPSE)) {
371 if (strcmp(token[0], "SAMPLE_PERIOD") == 0 && token[1]) 371 if (strcmp(token[0], "SAMPLE_PERIOD") == 0 && token[1])
372 sample_pariod_us = atof(token[1]) * 1000000; 372 sample_period_us = atof(token[1]) * 1000000;
373 } 373 }
374 config_close(parser); 374 config_close(parser);
375 } 375 }
@@ -400,7 +400,7 @@ int bootchartd_main(int argc UNUSED_PARAM, char **argv)
400 putenv((char*)bb_PATH_root_path); 400 putenv((char*)bb_PATH_root_path);
401 401
402 tempdir = make_tempdir(); 402 tempdir = make_tempdir();
403 do_logging(sample_pariod_us); 403 do_logging(sample_period_us);
404 finalize(tempdir, cmd == CMD_START ? argv[2] : NULL); 404 finalize(tempdir, cmd == CMD_START ? argv[2] : NULL);
405 return EXIT_SUCCESS; 405 return EXIT_SUCCESS;
406 } 406 }