hPutStrLn stderr "Error: this program doesn't take any arguments."
exitWith $ ExitFailure 1
- (nl, il, csf, ktn, kti) <- CLI.loadExternalData opts
+ (nl, il, csf) <- CLI.loadExternalData opts
printf "Loaded %d nodes, %d instances\n"
(Container.size nl)
(Cluster.printStats ns)
printf "Solution (delta=%d):\n" $! min_d
- let (sol_strs, cmd_strs) = Cluster.printSolution il ktn kti solution
+ let (sol_strs, cmd_strs) = Cluster.printSolution ns il solution
putStr $ unlines $ sol_strs
when (optShowCmds opts) $
do
(final_mem, final_disk) = Cluster.totalResources ns
putStrLn ""
putStrLn "Final cluster status:"
- putStrLn $ Cluster.printNodes ktn ns
+ putStrLn $ Cluster.printNodes ns
printf "Original: mem=%d disk=%d\n" orig_mem orig_disk
printf "Final: mem=%d disk=%d\n" final_mem final_disk