Skip to content

Commit

Permalink
Fix spellings and spell-check failure
Browse files Browse the repository at this point in the history
  • Loading branch information
aggarw13 committed Feb 19, 2021
1 parent a103ba8 commit 382cd8b
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 14 deletions.
3 changes: 2 additions & 1 deletion demos/defender/defender_demo_json/metrics_collector.c
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,8 @@ MetricsCollectorStatus_t GetCpuUsageStats( CpuUsageStats_t * pCpuUsage )
}
else
{
/* Convert data from floating point to interger by multiplying by 100. */
/* Convert data from floating point to integer by multiplying by 100 to represent data in
* USER_HZ time units. */
pCpuUsage->upTime = ( int64_t ) ( upTime * 100.0f );
pCpuUsage->idleTime = ( int64_t ) ( idleTime * 100.0f );
}
Expand Down
10 changes: 1 addition & 9 deletions demos/defender/defender_demo_json/metrics_collector.h
Original file line number Diff line number Diff line change
Expand Up @@ -63,25 +63,17 @@ typedef struct Connection
* @brief Represents the Cpu Usage statistics obtained from "/proc/uptime".
* Refer to Linux manual for "/proc" filesystem for more information.
* https://man7.org/linux/man-pages/man5/procfs.5.html
*
* @note This information is reported to AWS IoT Device Defender service as a
* custom metric.
*/
typedef struct CpuUsageData
{
int64_t upTime; /**< Up-time of system in USER_HZ (1/100th of second) time units. */
int64_t idleTime; /**< Idle time of system in USER_HZ (1/100th of second) ime units. */
int64_t idleTime; /**< Idle time of system in USER_HZ (1/100th of second) time units. */
} CpuUsageStats_t;

/**
* @brief Represents the memory data of total and available memory from "/proc/uptime".
* Refer to Linux manual for "/proc" filesystem for more information.
* https://man7.org/linux/man-pages/man5/procfs.5.html
*
* @note This information is reported to AWS IoT Device Defender service as a
* custom metric as a list of strings. Sending this information as a string is for
* demonstration purposes only. To reduce memory consumption for this metric, the
* information can be sent as integer list instead.
*/
typedef struct MemoryStats
{
Expand Down
2 changes: 1 addition & 1 deletion demos/defender/defender_demo_json/report_builder.h
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ typedef struct CustomMetricStringList
} CustomMetricStringList_t;

/**
* @brief Represents a IP address list type of custom metric.
* @brief Represents an IP address list type of custom metric.
* This is a concrete definition of #CustomMetricBase_t for the IP address
* list type of custom metric.
*/
Expand Down
16 changes: 13 additions & 3 deletions demos/lexicon.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ asymetric
async
atttribute
auth
availablememory
avoidng
aws
ba
Expand Down Expand Up @@ -236,6 +237,7 @@ httpsuccess
httpthread
hw
ia
idletime
ietf
ifdef
ifndef
Expand All @@ -247,6 +249,7 @@ intel
interoperate
io
iot
ip
ipv
iso
jac
Expand Down Expand Up @@ -291,6 +294,7 @@ mcu
md
mechanims
mem
meminfo
memset
merkle
messagelength
Expand Down Expand Up @@ -385,6 +389,8 @@ pcks
pclientsessionpresent
pconnectionsarray
pcontext
pcpuusage
pcustommetric
pdeserializedinfo
pdf
pdigest
Expand All @@ -408,6 +414,7 @@ pkwrite
plaintext
platformimagestate
pleace
pmemorydata
pmessage
pmethod
pmetrics
Expand Down Expand Up @@ -452,6 +459,7 @@ prf
printf
proc
processloop
procfs
programname
proto
prvobjectgeneration
Expand Down Expand Up @@ -530,11 +538,11 @@ secp
seedfile
sendupdate
serverhost
shadowname
shadownamelength
setkey
sha
sha256
shadowname
shadownamelength
shadowstatus
shadowtopicstringtypeupdatedelta
shasum
Expand Down Expand Up @@ -589,6 +597,8 @@ topicfilter
topicfilterlength
topiclen
topiclength
totalmem
totalmemory
transportinterface
transporttimeout
txt
Expand Down Expand Up @@ -639,4 +649,4 @@ xxxx
xz
xzaccel
zeroize
zlib
zlib

0 comments on commit 382cd8b

Please sign in to comment.