Make webbw stats location configurable
authorClinton Ebadi <clinton@unknownlamer.org>
Tue, 25 Feb 2014 00:50:23 +0000 (19:50 -0500)
committerClinton Ebadi <clinton@unknownlamer.org>
Tue, 25 Feb 2014 00:50:23 +0000 (19:50 -0500)
config.sig
config.sml
stats.sml

index a18551b..6433593 100644 (file)
@@ -7,7 +7,7 @@ val boardEmail : string
 val dbstring : string
 val kerberosSuffix : string
 val passwordFiles : string
-
 val passgenDbstring : string
+val statsRoot : string
 
 end
index 4797cd1..27b497b 100644 (file)
@@ -13,4 +13,6 @@ val passwordFiles = "/var/lib/portal/"
 
 val passgenDbstring = "dbname='passgen' user='hcoop' host='postgres' port=5433"
 
+val statsRoot = "/afs/hcoop.net/user/h/hc/hcoop/portal-tools/etc/stats/"
+
 end
index 1e61f2d..39aef14 100644 (file)
--- a/stats.sml
+++ b/stats.sml
@@ -1,8 +1,8 @@
 structure Stats :> STATS =
 struct
-   val webbw = "/etc/stats/webbw"
-   val webbw_last = "/etc/stats/webbw.last"
-   val webbw_last2 = "/etc/stats/webbw.last2"
+   val webbw = Config.statsRoot ^ "webbw"
+   val webbw_last = Config.statsRoot ^ "webbw.last"
+   val webbw_last2 = Config.statsRoot ^ "webbw.last2"
 
    type host = {ssl : bool,
                hostname : string,