diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2010-06-22 18:33:15 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2010-06-22 18:33:15 +0200 |
commit | 64606c6d01f5b86b62541b12dd4f475635d47270 (patch) | |
tree | 456e052613dd895d502bff2d3c35369141d87f82 | |
parent | fc6f6e933c20e6016d19339ac472f6af3d05d4c3 (diff) | |
download | busybox-64606c6d01f5b86b62541b12dd4f475635d47270.tar.gz |
typo fix
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r-- | init/bootchartd.c | 12 |
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) return tempdir; } -static void do_logging(int sample_pariod_us) +static void do_logging(int sample_period_us) { //# Enable process accounting if configured //if [ "$PROCESS_ACCOUNTING" = "yes" ]; then @@ -240,7 +240,7 @@ static void do_logging(int sample_pariod_us) } fflush_all(); wait_more: - usleep(sample_pariod_us); + usleep(sample_period_us); } // [ -e kernel_pacct ] && accton off @@ -326,7 +326,7 @@ static void finalize(char *tempdir, const char *prog) int bootchartd_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; int bootchartd_main(int argc UNUSED_PARAM, char **argv) { - int sample_pariod_us; + int sample_period_us; pid_t parent_pid, logger_pid; smallint cmd; enum { @@ -361,7 +361,7 @@ int bootchartd_main(int argc UNUSED_PARAM, char **argv) /* Here we are in START or INIT state */ /* Read config file: */ - sample_pariod_us = 200 * 1000; + sample_period_us = 200 * 1000; if (ENABLE_FEATURE_BOOTCHARTD_CONFIG_FILE) { char* token[2]; 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) parser = config_open2("/etc/bootchartd.conf", fopen_for_read); while (config_read(parser, token, 2, 0, "#=", PARSE_NORMAL & ~PARSE_COLLAPSE)) { if (strcmp(token[0], "SAMPLE_PERIOD") == 0 && token[1]) - sample_pariod_us = atof(token[1]) * 1000000; + sample_period_us = atof(token[1]) * 1000000; } config_close(parser); } @@ -400,7 +400,7 @@ int bootchartd_main(int argc UNUSED_PARAM, char **argv) putenv((char*)bb_PATH_root_path); tempdir = make_tempdir(); - do_logging(sample_pariod_us); + do_logging(sample_period_us); finalize(tempdir, cmd == CMD_START ? argv[2] : NULL); return EXIT_SUCCESS; } |