mirror of
https://github.com/eclipse/upm.git
synced 2025-03-15 04:57:30 +03:00
gas: fix sign comparison warnings
Signed-off-by: Jon Trulson <jtrulson@ics.com>
This commit is contained in:
parent
aab0c5afe2
commit
8da9f28157
@ -92,7 +92,7 @@ Gas::getSample () {
|
|||||||
void
|
void
|
||||||
Gas::printGraph (thresholdContext* ctx, uint8_t resolution) {
|
Gas::printGraph (thresholdContext* ctx, uint8_t resolution) {
|
||||||
std::cout << "(" << ctx->runningAverage << ") | ";
|
std::cout << "(" << ctx->runningAverage << ") | ";
|
||||||
for (int i = 0; i < ctx->runningAverage / resolution; i++)
|
for (unsigned int i = 0; i < ctx->runningAverage / resolution; i++)
|
||||||
std::cout << "*";
|
std::cout << "*";
|
||||||
std::cout << std::endl;
|
std::cout << std::endl;
|
||||||
}
|
}
|
||||||
|
@ -28,7 +28,7 @@
|
|||||||
|
|
||||||
struct thresholdContext {
|
struct thresholdContext {
|
||||||
long averageReading;
|
long averageReading;
|
||||||
long runningAverage;
|
unsigned long runningAverage;
|
||||||
int averagedOver;
|
int averagedOver;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user