[Ntop] rrdPlugin.c incorrect preset values
Steve Clark
sclark at netwolves.com
Tue Jan 19 21:53:22 CET 2010
Hi,
in the rrdPlugin.c function listResource
the preset code is wrong for last 6 hours and last hour it currently
has:
safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "<option value=\"%s&start=%u%s\">Last 6h</option>\n", url, now - 6 * 86400, filter);
sendString(buf);
safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "<option value=\"%s&start=%u%s\">Last Hour</option>\n", url, now - 86400, filter);
it should be:
safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "<option value=\"%s&start=%u%s\">Last 6h</option>\n", url,now - 6 * 3600, filter);
sendString(buf);
safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "<option value=\"%s&start=%u%s\">Last Hour</option>\n", url, now - 3600, filter)
--
Stephen Clark
NetWolves
Sr. Software Engineer III
Phone: 813-579-3200
Fax: 813-882-0209
Email: steve.clark at netwolves.com
www.netwolves.com
More information about the Ntop
mailing list