Skip to content

Commit

Permalink
Fix up logs wording to match latest changes
Browse files Browse the repository at this point in the history
  • Loading branch information
doktornotor authored Jan 15, 2017
1 parent b3ea4d9 commit e8199f5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions net/pfSense-pkg-ntopng/files/usr/local/pkg/ntopng.inc
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ function ntopng_sync_package() {
if ($_POST['Submit'] == "Update GeoIP Data") {
return;
}
if ($_POST['Delete'] == "Delete (Historical) Data") {
if ($_POST['Delete'] == "Delete Data") {
return;
}

Expand Down Expand Up @@ -289,7 +289,7 @@ function ntopng_flush_historical_data() {
ntopng_services_stop();
if (is_dir("/var/db/ntopng/")) {
mwexec("rm -rf /var/db/ntopng/");
log_error(gettext("[ntopng] Deleted ntopng historical traffic data and graphs."));
log_error(gettext("[ntopng] Deleted ntopng traffic data and graphs."));
} else {
log_error(gettext("[ntopng] Nothing to delete; /var/db/ntopng/ directory not found."));
}
Expand All @@ -301,9 +301,9 @@ function ntopng_flush_historical_data() {
ntopng_sync_package();
log_error(gettext("[ntopng] Resynced ntopng settings."));
} else {
$error = "Cannot delete historical data - redis-server is not running.";
$error = "Cannot delete data - redis-server is not running.";
log_error(gettext("[ntopng] {$error}"));
file_notice("ntopng", $error, "ntopng Delete Historical Data", "");
file_notice("ntopng", $error, "ntopng Delete Data", "");
}
}

Expand Down

0 comments on commit e8199f5

Please sign in to comment.