X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=eggui.c;h=83a90923c846a3f41afbb846fe54b2c54953c9a8;hb=355cd697d1323ac224ffb19b3c66614bb6c87d87;hp=e3eb431fd3451681939b1df96c6df2dff0848e96;hpb=9c19f1c350c5d075a47a193c1b5b2d9f8fa41f04;p=debian%2Fgcpegg diff --git a/eggui.c b/eggui.c index e3eb431..83a9092 100644 --- a/eggui.c +++ b/eggui.c @@ -132,11 +132,13 @@ int32 UIUpdate(int32 cres, CollectRecord *coll) { move(line++, 5); now = getzulutime(NULL); - tmstr = ctime(&now); tmstr[strlen(tmstr)-1] = 0; + time_t now_val = now; + tmstr = ctime(&now_val); tmstr[strlen(tmstr)-1] = 0; printw("Last sample at %25s", tmstr); move(line++, 5); - tmstr = ctime(&lastDataSent); + time_t lastDataSent_val = lastDataSent; + tmstr = ctime(&lastDataSent_val); tmstr[strlen(tmstr)-1] = 0; printw("Last packet at %25s", lastDataSent == 0 ? "Never" : tmstr);