2fd75e8e65
Logstalgia is a website traffic visualization that replays or streams Apache web-server access logs as a pong-like battle between the web server and an never ending torrent of requests. from Gonzalo L. R. (MAINTAINER) with tweaks by me ok sthen@
22 lines
935 B
Plaintext
22 lines
935 B
Plaintext
$OpenBSD: patch-src_logstalgia_cpp,v 1.1.1.1 2011/10/20 10:58:21 jasper Exp $
|
|
--- src/logstalgia.cpp.orig Tue Sep 20 16:54:02 2011
|
|
+++ src/logstalgia.cpp Tue Sep 20 16:54:52 2011
|
|
@@ -394,7 +394,7 @@ std::string Logstalgia::dateAtPosition(float percent)
|
|
|
|
long timestamp = le.timestamp;
|
|
|
|
- struct tm* timeinfo = localtime ( ×tamp );
|
|
+ struct tm *timeinfo = localtime( (const time_t *)(×tamp) );
|
|
strftime(datestr, 256, "%H:%M:%S %B %d, %Y", timeinfo);
|
|
date = std::string(datestr);
|
|
}
|
|
@@ -908,7 +908,7 @@ void Logstalgia::logic(float t, float dt) {
|
|
char datestr[256];
|
|
char timestr[256];
|
|
|
|
- struct tm* timeinfo = localtime ( &currtime );
|
|
+ struct tm *timeinfo = localtime( (const time_t *)(&currtime) );
|
|
strftime(datestr, 256, "%A, %B %d, %Y", timeinfo);
|
|
strftime(timestr, 256, "%X", timeinfo);
|
|
|