Skip to content

Commit

Permalink
fix(lib): convert 'cpu/utilization' to number
Browse files Browse the repository at this point in the history
  • Loading branch information
manushak committed Apr 22, 2024
1 parent 348ca80 commit 7209981
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/azure-importer/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export const AzureImporter = (): PluginInterface => {
) => {
return rawResults.timestamps.map((timestamp, index) => ({
'cloud/vendor': 'azure',
'cpu/utilization': rawResults.cpuUtilizations[index],
'cpu/utilization': parseFloat(rawResults.cpuUtilizations[index]),
'memory/available/GB': parseFloat(rawResults.memAvailable[index]) * 1e-9,
'memory/used/GB':
parseFloat(rawMetadataResults.totalMemoryGB) -
Expand Down

0 comments on commit 7209981

Please sign in to comment.