Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/torch/gnuplot.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlfredo Canziani <alfredo.canziani@gmail.com>2015-02-18 23:51:42 +0300
committerAlfredo Canziani <alfredo.canziani@gmail.com>2015-02-18 23:51:42 +0300
commit982b91d2b8dde1e87fc0c11995fd1a26e13c82ff (patch)
treefb6d6fd9bd517f5f95f24bf534d6f2b5a1d9873f
parent78b59793890678ef4cd5444e05c98c4543f6e320 (diff)
Wrong version checking
*gnuplot* is at version `5.0`. So, even though `0` < `4`, `5` > `4`.
-rw-r--r--gnuplot.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/gnuplot.lua b/gnuplot.lua
index d33ebbe..ebbc630 100644
--- a/gnuplot.lua
+++ b/gnuplot.lua
@@ -190,7 +190,7 @@ local function findgnuplotexe()
if v < 4 then
error('gnuplot version 4 is required')
end
- if vv < 4 then
+ if v == 4 and vv < 4 then
-- try to find gnuplot44
if o == 'linux' and paths.filep('/usr/bin/gnuplot44') then
local ss = '/usr/bin/gnuplot44'