mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-12 04:05:53 +02:00
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:
committed by
Michael Tremer
parent
462056ad86
commit
c63e97bbaf
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user