Chris Walker reports a silly typo in HTML reporting: the < and > signs
authorsimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Mon, 20 Feb 2012 07:30:02 +0000 (07:30 +0000)
committersimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Mon, 20 Feb 2012 07:30:02 +0000 (07:30 +0000)
used in the mouseover text for file ages outside the colour range were
the wrong way round! I must have been thinking about comparison of
time_ts, in which case < does mean older, but by the time I print the
output it's in the form of an age, so > means older.

git-svn-id: svn://svn.tartarus.org/sgt/agedu@9415 cda61777-01e9-0310-a592-d414129be87e

html.c

diff --git a/html.c b/html.c
index 8233993..ad23159 100644 (file)
--- a/html.c
+++ b/html.c
@@ -959,10 +959,10 @@ char *html_query(const void *t, unsigned long index,
        char buf[80];
 
        if (i == 0) {
-           strcpy(buf, "&lt; ");
+           strcpy(buf, "&gt; ");
            round_and_format_age(ctx, ctx->thresholds[0], buf+5, 0);
        } else if (i == MAXCOLOUR) {
-           strcpy(buf, "&gt; ");
+           strcpy(buf, "&lt; ");
            round_and_format_age(ctx, ctx->thresholds[MAXCOLOUR-1], buf+5, 0);
        } else {
            unsigned long long midrange =