Fix $printtimescale to support 10s and 100s values.
(cherry picked from commit e54d19e2d2)
This commit is contained in:
parent
1b0843c94c
commit
dec9a8b527
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 1999-2015 Stephen Williams (steve@icarus.com)
|
||||
* Copyright (c) 1999-2017 Stephen Williams (steve@icarus.com)
|
||||
*
|
||||
* This source code is free software; you can redistribute it
|
||||
* and/or modify it in source code form under the terms of the GNU
|
||||
|
|
@ -1887,6 +1887,8 @@ static const char *pts_convert(int value)
|
|||
{
|
||||
const char *string;
|
||||
switch (value) {
|
||||
case 2: string = "100s"; break;
|
||||
case 1: string = "10s"; break;
|
||||
case 0: string = "1s"; break;
|
||||
case -1: string = "100ms"; break;
|
||||
case -2: string = "10ms"; break;
|
||||
|
|
|
|||
Loading…
Reference in New Issue