Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
snf-ganeti
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
itminedu
snf-ganeti
Commits
d85a0a0f
Commit
d85a0a0f
authored
15 years ago
by
Iustin Pop
Browse files
Options
Downloads
Patches
Plain Diff
Cleanup an old function
Also replace a type with its synonim.
parent
9188aeef
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Ganeti/HTools/Cluster.hs
+1
-1
1 addition, 1 deletion
Ganeti/HTools/Cluster.hs
Ganeti/HTools/Utils.hs
+0
-10
0 additions, 10 deletions
Ganeti/HTools/Utils.hs
with
1 addition
and
11 deletions
Ganeti/HTools/Cluster.hs
+
1
−
1
View file @
d85a0a0f
...
...
@@ -117,7 +117,7 @@ computeBadItems nl il =
(
bad_nodes
,
bad_instances
)
-- | Compute the total free disk and memory in the cluster.
totalResources
::
Container
.
Container
Node
.
Node
->
(
Int
,
Int
)
totalResources
::
Node
.
List
->
(
Int
,
Int
)
totalResources
nl
=
foldl'
(
\
(
mem
,
dsk
)
node
->
(
mem
+
(
Node
.
f_mem
node
),
...
...
This diff is collapsed.
Click to expand it.
Ganeti/HTools/Utils.hs
+
0
−
10
View file @
d85a0a0f
...
...
@@ -5,7 +5,6 @@ module Ganeti.HTools.Utils
debug
,
sepSplit
,
varianceCoeff
,
readData
,
commaJoin
,
readEitherString
,
loadJSArray
...
...
@@ -73,15 +72,6 @@ stdDev lst =
varianceCoeff
::
Floating
a
=>
[
a
]
->
a
varianceCoeff
lst
=
(
stdDev
lst
)
/
(
fromIntegral
$
length
lst
)
-- | Get an Ok result or print the error and exit.
readData
::
Result
a
->
IO
a
readData
nd
=
(
case
nd
of
Bad
x
->
do
putStrLn
x
exitWith
$
ExitFailure
1
Ok
x
->
return
x
)
-- * JSON-related functions
-- | Converts a JSON Result into a monadic value.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment