Browse Source

C'est la faute de la mirabelle...

Mathieu 10 years ago
parent
commit
6f4f19e309
1 changed files with 2 additions and 2 deletions
  1. 2 2
      contrib/vpn_acct.py

+ 2 - 2
contrib/vpn_acct.py

@@ -34,8 +34,8 @@ def read_vpn_acct_file(filename):
         # format: username ip qos uptxbytes downrxbytes
         if len(d) == 5:
             metrics.extend([
-                ( '%s.%s.upxtbytes'   % d[0], (options.prefix, tstamp, int(d[3])) ),
-                ( '%s.%s.downrxbytes' % d[0], (options.prefix, tstamp, int(d[4])) ),
+                ( '%s.%s.upxtbytes'   % (options.prefix, d[0]), (tstamp, int(d[3])) ),
+                ( '%s.%s.downrxbytes' % (options.prefix, d[0]), (tstamp, int(d[4])) ),
             ])
     return tstamp, metrics