]> Git Repo - linux.git/blobdiff - tools/perf/scripts/python/export-to-postgresql.py
Merge tag 'v5.9-rc2' into regulator-5.9
[linux.git] / tools / perf / scripts / python / export-to-postgresql.py
index 7bd73a904b4ee103a8ad8aa92fc2253517cb5109..d187e46c2683e8cd1ecccc6b1287c46598b0cacc 100644 (file)
@@ -1055,7 +1055,7 @@ def cbr(id, raw_buf):
        cbr = data[0]
        MHz = (data[4] + 500) / 1000
        percent = ((cbr * 1000 / data[2]) + 5) / 10
-       value = struct.pack("!hiqiiiiii", 4, 8, id, 4, cbr, 4, MHz, 4, percent)
+       value = struct.pack("!hiqiiiiii", 4, 8, id, 4, cbr, 4, int(MHz), 4, int(percent))
        cbr_file.write(value)
 
 def mwait(id, raw_buf):
This page took 0.031203 seconds and 4 git commands to generate.