summaryrefslogtreecommitdiff
path: root/FS/FS/part_pkg/flat.pm
diff options
context:
space:
mode:
Diffstat (limited to 'FS/FS/part_pkg/flat.pm')
-rw-r--r--FS/FS/part_pkg/flat.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/FS/FS/part_pkg/flat.pm b/FS/FS/part_pkg/flat.pm
index e8417ff..8cb25a6 100644
--- a/FS/FS/part_pkg/flat.pm
+++ b/FS/FS/part_pkg/flat.pm
@@ -155,7 +155,8 @@ sub is_prepaid {
}
sub reset_usage {
- my($self, $cust_pkg) = @_;
+ my($self, $cust_pkg, %opt) = @_;
+ warn " resetting usage counters" if $opt{debug} > 1;
my %values = map { $_, $self->option($_) }
grep { $self->option($_, 'hush') }
qw(seconds upbytes downbytes totalbytes);