The first par is really a fix, the number of seconds in an hour was false.
The second is just to be more true when saying a year and 6 months ;-)

Index: rrdPlugin.c
===================================================================
RCS file: /export/home/ntop/ntop/plugins/rrdPlugin.c,v
retrieving revision 2.266
diff -r2.266 rrdPlugin.c
388c388
<   safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "<option 
value=\"%s&start=%u\">Last 6h</option>\n", url, now - 6 * 86400);
---
>   safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "<option 
value=\"%s&start=%u\">Last 6h</option>\n", url, now - 6 * 3600);
390c390
<   safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "<option 
value=\"%s&start=%u\">Last Hour</option>\n", url, now - 86400);
---
>   safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "<option 
value=\"%s&start=%u\">Last Hour</option>\n", url, now - 3600);
967,968c967,968
<     option_timespan(the_time-6*30*86400, "Last 6 Months", 0);
<     option_timespan(the_time-12*30*86400, "Last Year", 0);
---
>     option_timespan(the_time-182*86400, "Last 6 Months", 0);
>     option_timespan(the_time-365*86400, "Last Year", 0);

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
Ntop-dev mailing list
[email protected]
http://listgateway.unipi.it/mailman/listinfo/ntop-dev

Reply via email to