summaryrefslogtreecommitdiffstats
path: root/plugins/mock/uca-mock-camera.c
diff options
context:
space:
mode:
authorMatthias Vogelgesang <matthias.vogelgesang@gmail.com>2012-10-12 14:47:07 +0200
committerMatthias Vogelgesang <matthias.vogelgesang@gmail.com>2012-10-12 14:47:07 +0200
commitef7ff789e9c15f4f4b8c65585de7e7fa4f9c9438 (patch)
tree2f6a105b6a4c1325b2aba7c1fa3d9a2b26856a7c /plugins/mock/uca-mock-camera.c
parent6b82a9a175c92c39f25e9b5965b2e9f5c35f65c2 (diff)
downloaduca-ef7ff789e9c15f4f4b8c65585de7e7fa4f9c9438.tar.gz
uca-ef7ff789e9c15f4f4b8c65585de7e7fa4f9c9438.tar.bz2
uca-ef7ff789e9c15f4f4b8c65585de7e7fa4f9c9438.tar.xz
uca-ef7ff789e9c15f4f4b8c65585de7e7fa4f9c9438.zip
Add ring buffer recording for assessment
Diffstat (limited to 'plugins/mock/uca-mock-camera.c')
-rw-r--r--plugins/mock/uca-mock-camera.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/mock/uca-mock-camera.c b/plugins/mock/uca-mock-camera.c
index 65c4240..38caf0d 100644
--- a/plugins/mock/uca-mock-camera.c
+++ b/plugins/mock/uca-mock-camera.c
@@ -146,9 +146,10 @@ static void print_number(gchar *buffer, guint number, guint x, guint y, guint wi
static void print_current_frame(UcaMockCameraPrivate *priv, gchar *buffer)
{
guint number = priv->current_frame;
- guint divisor = 100000000;
+ guint divisor = 10000000;
int x = 10;
- while (divisor > 1) {
+
+ while (divisor > 0) {
print_number(buffer, number / divisor, x, 10, priv->width);
number = number % divisor;
divisor = divisor / 10;