changeset 35:af5fa681278e

Fixed warning.
author samer
date Thu, 06 Feb 2014 14:47:53 +0000
parents 439e7d337647
children a1094b51a6c4
files prolog/plml.pl
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/prolog/plml.pl	Tue Sep 25 09:58:10 2012 +0100
+++ b/prolog/plml.pl	Thu Feb 06 14:47:53 2014 +0000
@@ -297,9 +297,9 @@
 	ground(Id),
 	options_flags(Options,Flags),
 	option(cmd(Bin),Options,matlab),
-	(	(Host=localhost;hostname(HostName))
+	(	(Host=localhost;hostname(Host))
 	-> format(atom(Exec),'exec ~w',[Bin]) % using exec fixes Ctrl-C bug 
-	;	format(atom(Exec),'ssh ~w ~w',[HostName,Bin])
+	;	format(atom(Exec),'ssh ~w ~w',[Host,Bin])
 	),
 	(	member(debug(In,Out),Options)
 	-> debug(plml,'Running Matlab with protocol logging.',[]),