aboutsummaryrefslogtreecommitdiff
path: root/src/directive.c
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2009-02-21 18:26:51 +0200
committerSergey Poznyakoff <gray@gnu.org.ua>2009-02-21 18:26:51 +0200
commit0b63c31eadfe5d4e94c7014bd0f3bd4370783d19 (patch)
tree9feb30a2c64d785d5e59fecd06429413e9f4d398 /src/directive.c
parent1213cf065e9b3a5fb45d00276b3d168462838c17 (diff)
downloadwydawca-0b63c31eadfe5d4e94c7014bd0f3bd4370783d19.tar.gz
wydawca-0b63c31eadfe5d4e94c7014bd0f3bd4370783d19.tar.bz2
Implement timers and destination URLs.
* gconf/gconf-gram.y (stmt_end): Make sure end callback is called in the same environment as the begin one. * src/vtab.c, src/null.c, src/timer.c: New files. * src/Makefile.am (wydawca_SOURCES): Add new files. * src/config.c (cb_mailer): Remove useless check. (cb_destination_url): New function. (directory_kw): Change handling of the destination keyword. (cb_directory): Rewrite final checks. * src/directive.c, /src/process.c, src/triplet.c: Add timers. * src/diskio.c (move_file, archive_file, symlink_file, rmsymlink_file): Prefix with dir_. * src/mail.c (mail_stats): Add timer meta-variables. * src/wydawca.c (make_stat_expansion): Change definition. * src/wydawca.h (struct virt_tab): New data type. (struct directory_pair.dest_url): New member. * tests/upload-dry.at: Update expected output.
Diffstat (limited to 'src/directive.c')
-rw-r--r--src/directive.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/directive.c b/src/directive.c
index d99f65b..b050ffb 100644
--- a/src/directive.c
+++ b/src/directive.c
@@ -308,6 +308,7 @@ process_directives (struct file_triplet *trp, struct directory_pair *dpair)
const char *key, *val;
char *relative_dir;
+ timer_start ("triplet");
UPDATE_STATS (STAT_COMPLETE_TRIPLETS);
for (n = directive_first (trp, &key, &val); n;
n = directive_next (trp, n, &key, &val))
@@ -400,6 +401,7 @@ process_directives (struct file_triplet *trp, struct directory_pair *dpair)
free (relative_dir);
UPDATE_STATS (STAT_TRIPLET_SUCCESS);
+ timer_stop ("triplet");
notify (dpair->notification, trp, ev_success);
return 0;
}

Return to:

Send suggestions and report system problems to the System administrator.