]> sigrok.org Git - pulseview.git/blobdiff - pv/binding/device.cpp
Only show sampling points when zoomed in far enough.
[pulseview.git] / pv / binding / device.cpp
index 521177ad4bfd3f7fb64a70d9c5f66fd726050aec..8ef05f05bcfa20baaf608e9975a6beeadaa666cc 100644 (file)
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
+ * along with this program; if not, see <http://www.gnu.org/licenses/>.
  */
 
-#include <stdint.h>
+#include <cstdint>
 
 #include <QDebug>
 
@@ -178,7 +177,7 @@ QString Device::print_timebase(Glib::VariantBase gvar)
 {
        uint64_t p, q;
        g_variant_get(gvar.gobj(), "(tt)", &p, &q);
-       return QString::fromUtf8(sr_period_string(p * q));
+       return QString::fromUtf8(sr_period_string(p, q));
 }
 
 QString Device::print_vdiv(Glib::VariantBase gvar)