Skip to content

Commit 2e54768

Browse files
Update delta.py
1 parent 4a09102 commit 2e54768

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

delta.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
from cryptography import __version__ as cryptography_version
99
from urllib.parse import urlparse
1010
import requests
11-
import matplotlib.pyplot as plt
11+
#import matplotlib.pyplot as plt
1212

1313
import oracledb
1414
import psycopg2
@@ -22,7 +22,7 @@
2222
# Oracle Database credentials
2323
oracle_un = 'admin'
2424
oracle_pw = 'your_password'
25-
oracle_cs = '(description= (retry_count=20)(retry_delay=3)(address=(protocol=tcps)(port=1521)(host=adb.uk-london-1.oraclecloud.com))(connect_data=(service_name=m*******_demoadb_high.adb.oraclecloud.com))(security=(ssl_server_dn_match=yes)))'
25+
oracle_cs = '(description= (retry_count=20)(retry_delay=3)(address=(protocol=tcps)(port=1521)(host=adb.uk-london-1.oraclecloud.com))(connect_data=(service_name=m783q0lhgfda8ox_demoadb_high.adb.oraclecloud.com))(security=(ssl_server_dn_match=yes)))'
2626

2727
# PostgreSQL credentials
2828
pgsql_un = 'postgres'
@@ -221,15 +221,15 @@ def url_ping(interval, csvfile):
221221
calculate_p99_latency()
222222

223223
# Plot the latencies on a graph
224-
plt.figure(figsize=(10, 5))
225-
plt.plot(query_times, marker='o')
226-
plt.title('Latency Over Time')
227-
plt.xlabel('Query Number')
228-
plt.ylabel('Latency (ms)')
224+
#plt.figure(figsize=(10, 5))
225+
#plt.plot(query_times, marker='o')
226+
#plt.title('Latency Over Time')
227+
#plt.xlabel('Query Number')
228+
#plt.ylabel('Latency (ms)')
229229

230230
# Save the plot to a file
231231
output_file = "latency_plot.png"
232-
plt.savefig(output_file, bbox_inches='tight', dpi=300)
232+
#plt.savefig(output_file, bbox_inches='tight', dpi=300)
233233

234234
# Display the plot
235-
plt.show()
235+
#plt.show()

0 commit comments

Comments
 (0)