propellor spin
This commit is contained in:
parent
d67d59a25a
commit
1a62575d3d
|
@ -97,7 +97,9 @@ bandwidthRate (PerMonth s) = bandwidthRate' s (31*24*60*60)
|
||||||
|
|
||||||
bandwidthRate' :: String -> Integer -> Property NoInfo
|
bandwidthRate' :: String -> Integer -> Property NoInfo
|
||||||
bandwidthRate' s divby = case readSize dataUnits s of
|
bandwidthRate' s divby = case readSize dataUnits s of
|
||||||
Just sz -> configured [("BandwidthRate", show (sz `div` divby) ++ " bytes")]
|
Just sz -> let v = show (sz `div` divby) ++ " bytes"
|
||||||
|
in configured [("BandwidthRate", v)]
|
||||||
|
`describe` ("tor BandwidthRate " ++ v)
|
||||||
Nothing -> property ("unable to parse " ++ s) noChange
|
Nothing -> property ("unable to parse " ++ s) noChange
|
||||||
|
|
||||||
hiddenServiceAvailable :: HiddenServiceName -> Int -> Property NoInfo
|
hiddenServiceAvailable :: HiddenServiceName -> Int -> Property NoInfo
|
||||||
|
|
Loading…
Reference in New Issue