vpn-statistic: fix removal of rw rrd-data

Due to a missing slash the rrd data of a deleted rrd-connection was not
deleted
This commit is contained in:
Alexander Marx
2015-04-11 07:12:32 +02:00
committed by Michael Tremer
parent 462056ad86
commit c63e97bbaf

View File

@@ -605,7 +605,7 @@ int deleterrd(char *name) {
// Handle RW connections
if (strcmp(conn->type, "host") == 0) {
snprintf(rrd_dir, STRING_SIZE - 1, "/var/log/rrd/collectd/localhost/openvpn-%s", name);
snprintf(rrd_dir, STRING_SIZE - 1, "/var/log/rrd/collectd/localhost/openvpn-%s/", name);
// Handle N2N connections
} else if (strcmp(conn->type, "net") == 0) {