Skip to content

Commit

Permalink
tests/make_graph: delay capturing screen geometry until is actually n…
Browse files Browse the repository at this point in the history
…eeded

Co-authored-by: Martin Evgeniev <[email protected]>
  • Loading branch information
panchoh and suizman committed Dec 11, 2018
1 parent 1df205b commit 69b5cfa
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions tests/make_graph
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,11 @@
# See the License for the specific language governing permissions and
# limitations under the License.

lines=$(tput lines)
columns=$(tput cols)

if [ $# -ne 1 ]; then
echo "Usage: $0 results_dir"
exit 1
fi


dir="$1"
metric="$2"

Expand All @@ -49,6 +45,9 @@ else
echo 'Using cached /tmp/data.'
fi

lines=$(tput lines)
columns=$(tput cols)

while dialog --separate-output \
--buildlist 'Choose functions' \
$lines $columns $lines \
Expand Down

0 comments on commit 69b5cfa

Please sign in to comment.