From 1eadb9ad346e7326cea9b88ba92ecd24d672e400 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= Date: Wed, 6 May 2020 12:43:28 +0200 Subject: Made benchmark main runnable again. --- module/entry-points/benchmark.scm | 8 ++++---- module/entry-points/html.scm | 5 ++++- module/output/html.scm | 2 ++ 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/module/entry-points/benchmark.scm b/module/entry-points/benchmark.scm index 4843a80a..701d786b 100644 --- a/module/entry-points/benchmark.scm +++ b/module/entry-points/benchmark.scm @@ -3,15 +3,15 @@ :use-module (ice-9 getopt-long) :use-module (util) - :use-module (vcomponent) + :use-module (util app) ) (define opt-spec - '((file (value #t) (single-char #\f)))) + '()) (define (main args) (define opts (getopt-long args opt-spec)) - (cond [(option-ref opts 'file #f) => (compose load-calendars* list)] - [else (load-calendars)])) + (write (getf 'calendars app: (current-app))) +) diff --git a/module/entry-points/html.scm b/module/entry-points/html.scm index e03e5907..1237f628 100644 --- a/module/entry-points/html.scm +++ b/module/entry-points/html.scm @@ -66,4 +66,7 @@ [(table) (html-table-main count start)] [else - (error "Unknown html style: ~a" style)])) + (error "Unknown html style: ~a" style)]) + + ((@ (util time) report-time!) "all done") + ) diff --git a/module/output/html.scm b/module/output/html.scm index 6dc9591b..31b57228 100644 --- a/module/output/html.scm +++ b/module/output/html.scm @@ -783,6 +783,8 @@ (define calendars (getf 'calendars)) (define events (getf 'event-set)) + ((@ (util time) report-time!) "html start") + ;; TODO This still doesn't account for PWD, file existing but is of ;; wrong type, html directory existing but static symlink missing, ;; static being a different file type, and probably something else -- cgit v1.2.3